U - data type for serializedSparse() output@Operator public final class SerializeManySparse<U> extends PrimitiveOp implements Operand<U>
The `SparseTensor` must have rank `R` greater than 1, and the first dimension is treated as the minibatch dimension. Elements of the `SparseTensor` must be sorted in increasing order of this first dimension. The serialized `SparseTensor` objects going into each row of `serialized_sparse` will have rank `R-1`.
The minibatch size `N` is extracted from `sparse_shape[0]`.
operation| Modifier and Type | Method and Description |
|---|---|
Output<U> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T> SerializeManySparse<String> |
create(Scope scope,
Operand<Long> sparseIndices,
Operand<T> sparseValues,
Operand<Long> sparseShape)
Factory method to create a class to wrap a new SerializeManySparse operation to the graph, using default output types.
|
static <U,T> SerializeManySparse<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 SerializeManySparse operation to the graph.
|
Output<U> |
serializedSparse() |
equals, hashCode, toStringpublic static <U,T> SerializeManySparse<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 minibatch `SparseTensor`.sparseValues - 1-D. The `values` of the minibatch `SparseTensor`.sparseShape - 1-D. The `shape` of the minibatch `SparseTensor`.outType - The `dtype` to use for serialization; the supported types are `string`
(default) and `variant`.public static <T> SerializeManySparse<String> create(Scope scope, Operand<Long> sparseIndices, Operand<T> sparseValues, Operand<Long> sparseShape)
scope - current graph scopesparseIndices - 2-D. The `indices` of the minibatch `SparseTensor`.sparseValues - 1-D. The `values` of the minibatch `SparseTensor`.sparseShape - 1-D. The `shape` of the minibatch `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.