U - data type for serializedSparse() output@Operator public final class SerializeSparse<U> extends PrimitiveOp implements Operand<U>
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 to wrap a new SerializeSparse operation to the graph, 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 to wrap a new SerializeSparse operation to the graph.
|
Output<U> |
serializedSparse() |
equals, hashCode, toStringpublic static <U,T> SerializeSparse<U> create(Scope scope, Operand<Long> sparseIndices, Operand<T> sparseValues, Operand<Long> sparseShape, Class<U> outType)
scope - current graph 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 graph 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()
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<U>OperationBuilder.addInput(Output)Copyright © 2015–2019. All rights reserved.