T - data type for outputValues() outputOp@Operator(group="sparse") public final class SparseSplit<T> extends PrimitiveOp
If the `shape[split_dim]` is not an integer multiple of `num_split`. Slices `[0 : shape[split_dim] % num_split]` gets one extra dimension. For example, if `split_dim = 1` and `num_split = 2` and the input is
input_tensor = shape = [2, 7] [ a d e ] [b c ]
Graphically the output tensors are:
output_tensor[0] = shape = [2, 4] [ a ] [b c ]
output_tensor[1] = shape = [2, 3] [ d e ] [ ]
operation| Modifier and Type | Method | Description |
|---|---|---|
static <T> SparseSplit<T> |
create(Scope scope,
Operand<java.lang.Long> splitDim,
Operand<java.lang.Long> indices,
Operand<T> values,
Operand<java.lang.Long> shape,
java.lang.Long numSplit) |
Factory method to create a class to wrap a new SparseSplit operation to the graph.
|
java.util.List<Output<java.lang.Long>> |
outputIndices() |
|
java.util.List<Output<java.lang.Long>> |
outputShape() |
A list of 1-D tensors represents the shape of the output sparse
tensors.
|
java.util.List<Output<T>> |
outputValues() |
A list of 1-D tensors represents the values of the output sparse
tensors.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitequals, hashCode, toStringpublic static <T> SparseSplit<T> create(Scope scope, Operand<java.lang.Long> splitDim, Operand<java.lang.Long> indices, Operand<T> values, Operand<java.lang.Long> shape, java.lang.Long numSplit)
scope - current graph scopesplitDim - 0-D. The dimension along which to split. Must be in the range
`[0, rank(shape))`.indices - 2-D tensor represents the indices of the sparse tensor.values - 1-D tensor represents the values of the sparse tensor.shape - 1-D. tensor represents the shape of the sparse tensor.
output indices: A list of 1-D tensors represents the indices of the output
sparse tensors.numSplit - The number of ways to split.public java.util.List<Output<java.lang.Long>> outputIndices()
public java.util.List<Output<T>> outputValues()
public java.util.List<Output<java.lang.Long>> outputShape()