Modifier and Type | Class and Description |
---|---|
static class |
DecodeRaw.Options
Optional attributes for
DecodeRaw |
operation
Modifier and Type | Method and Description |
---|---|
Output<T> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T> DecodeRaw<T> |
create(Scope scope,
Operand<String> bytes,
Class<T> outType,
DecodeRaw.Options... options)
Factory method to create a class wrapping a new DecodeRaw operation.
|
static DecodeRaw.Options |
littleEndian(Boolean littleEndian) |
Output<T> |
output()
A Tensor with one more dimension than the input `bytes`.
|
equals, hashCode, op, toString
public static <T> DecodeRaw<T> create(Scope scope, Operand<String> bytes, Class<T> outType, DecodeRaw.Options... options)
scope
- current scopebytes
- All the elements must have the same length.outType
- options
- carries optional attributes valuespublic static DecodeRaw.Options littleEndian(Boolean littleEndian)
littleEndian
- Whether the input `bytes` are in little-endian order.
Ignored for `out_type` values that are stored in a single byte like
`uint8`.public Output<T> output()
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>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.