T
- data type for imageShape()
output@Operator(group="image") public final class ExtractJpegShape<T extends Number> extends PrimitiveOp implements Operand<T>
This op only parses the image header, so it is much faster than DecodeJpeg.
operation
Modifier and Type | Method and Description |
---|---|
Output<T> |
asOutput()
Returns the symbolic handle of a tensor.
|
static ExtractJpegShape<Integer> |
create(Scope scope,
Operand<String> contents)
Factory method to create a class wrapping a new ExtractJpegShape operation using default output types.
|
static <T extends Number> |
create(Scope scope,
Operand<String> contents,
Class<T> outputType)
Factory method to create a class wrapping a new ExtractJpegShape operation.
|
Output<T> |
imageShape()
1-D.
|
equals, hashCode, op, toString
public static <T extends Number> ExtractJpegShape<T> create(Scope scope, Operand<String> contents, Class<T> outputType)
scope
- current scopecontents
- 0-D. The JPEG-encoded image.outputType
- (Optional) The output type of the operation (int32 or int64).
Defaults to int32.public static ExtractJpegShape<Integer> create(Scope scope, Operand<String> contents)
scope
- current scopecontents
- 0-D. The JPEG-encoded image.public Output<T> imageShape()
public Output<T> asOutput()
Operand
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.
asOutput
in interface Operand<T extends Number>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.