Skip to content

Commit

Permalink
Add ctor with no arguments for TensorImage.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 297984962
Change-Id: Iaab4589ecb8b468807c9edd0ae50a411602c6f31
  • Loading branch information
xunkai55 authored and tensorflower-gardener committed Feb 29, 2020
1 parent efd49e0 commit 59c7725
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,17 @@ public class TensorImage {

private final ImageContainer container;

/**
* Initialize a TensorImage object.
*
* Note: The data type of this TensorImage is UINT8, which means it could naturally accept Bitmaps
* whose pixel value range is [0, 255]. However, any image with float value pixels will not be
* loaded correctly. In those cases, please use {@link TensorImage(DataType)}.
*/
public TensorImage() {
this(DataType.UINT8);
}

/**
* Initializes a TensorImage object with data type specified.
*
Expand Down

0 comments on commit 59c7725

Please sign in to comment.