T - data type for imageShape() output@Operator 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 to wrap a new ExtractJpegShape operation to the graph, using default output types.
|
static <T extends Number> |
create(Scope scope,
Operand<String> contents,
Class<T> outputType)
Factory method to create a class to wrap a new ExtractJpegShape operation to the graph.
|
Output<T> |
imageShape()
1-D.
|
equals, hashCode, toStringpublic static <T extends Number> ExtractJpegShape<T> create(Scope scope, Operand<String> contents, Class<T> outputType)
scope - current graph 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 graph scopecontents - 0-D. The JPEG-encoded image.public Output<T> imageShape()
public Output<T> 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<T extends Number>OperationBuilder.addInput(Output)Copyright © 2015–2019. All rights reserved.