public static class
DecodeImage.Options
Optional attributes for
DecodeImage
Public Methods
DecodeImage.Options |
channels
(Long channels)
|
DecodeImage.Options |
expandAnimations
(Boolean expandAnimations)
|
Inherited Methods
Public Methods
public DecodeImage.Options channels (Long channels)
Parameters
channels | Number of color channels for the decoded image. |
---|
public DecodeImage.Options expandAnimations (Boolean expandAnimations)
Parameters
expandAnimations | Controls the output shape of the returned op. If True, the returned op will produce a 3-D tensor for PNG, JPEG, and BMP files; and a 4-D tensor for all GIFs, whether animated or not. If, False, the returned op will produce a 3-D tensor for all file types and will truncate animated GIFs to the first frame. |
---|