operation
Modifier and Type | Method and Description |
---|---|
Output<U> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T> SerializeSparse<String> |
create(Scope scope,
Operand<Long> sparseIndices,
Operand<T> sparseValues,
Operand<Long> sparseShape)
Factory method to create a class wrapping a new SerializeSparse operation using default output types.
|
static <U,T> SerializeSparse<U> |
create(Scope scope,
Operand<Long> sparseIndices,
Operand<T> sparseValues,
Operand<Long> sparseShape,
Class<U> outType)
Factory method to create a class wrapping a new SerializeSparse operation.
|
Output<U> |
serializedSparse() |
equals, hashCode, op, toString
public static <U,T> SerializeSparse<U> create(Scope scope, Operand<Long> sparseIndices, Operand<T> sparseValues, Operand<Long> sparseShape, Class<U> outType)
scope
- current scopesparseIndices
- 2-D. The `indices` of the `SparseTensor`.sparseValues
- 1-D. The `values` of the `SparseTensor`.sparseShape
- 1-D. The `shape` of the `SparseTensor`.outType
- The `dtype` to use for serialization; the supported types are `string`
(default) and `variant`.public static <T> SerializeSparse<String> create(Scope scope, Operand<Long> sparseIndices, Operand<T> sparseValues, Operand<Long> sparseShape)
scope
- current scopesparseIndices
- 2-D. The `indices` of the `SparseTensor`.sparseValues
- 1-D. The `values` of the `SparseTensor`.sparseShape
- 1-D. The `shape` of the `SparseTensor`.public Output<U> 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<U>
OperationBuilder.addInput(Output)
Copyright © 2022. All rights reserved.