ExtractJpegShape

public final class ExtractJpegShape

Extract the shape information of a JPEG-encoded image.

This op only parses the image header, so it is much faster than DecodeJpeg.

Constants

String OP_NAME The name of this op, as known by TensorFlow core engine

Public Methods

Output<T>
asOutput()
Returns the symbolic handle of the tensor.
static <T extends TNumber> ExtractJpegShape<T>
create(Scope scope, Operand<TString> contents, Class<T> outputType)
Factory method to create a class wrapping a new ExtractJpegShape operation.
static ExtractJpegShape<TInt32>
create(Scope scope, Operand<TString> contents)
Factory method to create a class wrapping a new ExtractJpegShape operation using default output types.
Output<T>
imageShape()
1-D.

Inherited Methods

Constants

public static final String OP_NAME

The name of this op, as known by TensorFlow core engine

Constant Value: "ExtractJpegShape"

Public Methods

public Output<T> asOutput ()

Returns the symbolic handle of the tensor.

Inputs 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.

public static ExtractJpegShape<T> create (Scope scope, Operand<TString> contents, Class<T> outputType)

Factory method to create a class wrapping a new ExtractJpegShape operation.

Parameters
scope current scope
contents 0-D. The JPEG-encoded image.
outputType (Optional) The output type of the operation (int32 or int64). Defaults to int32.
Returns
  • a new instance of ExtractJpegShape

public static ExtractJpegShape<TInt32> create (Scope scope, Operand<TString> contents)

Factory method to create a class wrapping a new ExtractJpegShape operation using default output types.

Parameters
scope current scope
contents 0-D. The JPEG-encoded image.
Returns
  • a new instance of ExtractJpegShape

public Output<T> imageShape ()

1-D. The image shape with format [height, width, channels].