@Operator public final class DecodeGif extends PrimitiveOp implements Operand<UInt8>
GIF with frame or transparency compression are not supported convert animated GIF from compressed to uncompressed by:
convert $src.gif -coalesce $dst.gif
This op also supports decoding JPEGs and PNGs, though it is cleaner to use `tf.image.decode_image`.
operation| Modifier and Type | Method and Description |
|---|---|
Output<UInt8> |
asOutput()
Returns the symbolic handle of a tensor.
|
static DecodeGif |
create(Scope scope,
Operand<String> contents)
Factory method to create a class to wrap a new DecodeGif operation to the graph.
|
Output<UInt8> |
image()
4-D with shape `[num_frames, height, width, 3]`.
|
equals, hashCode, toStringpublic static DecodeGif create(Scope scope, Operand<String> contents)
scope - current graph scopecontents - 0-D. The GIF-encoded image.public Output<UInt8> asOutput()
OperandInputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.
asOutput in interface Operand<UInt8>OperationBuilder.addInput(Output)Copyright © 2015–2019. All rights reserved.