@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class SparseSplit extends Pointer
SparseTensor
into num_split
tensors along one dimension.
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 ]
[ ]
Arguments:
* scope: A Scope object
* split_dim: 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.
* num_split: The number of ways to split.
Returns:
* OutputList
output_indices
* OutputList
output_values: A list of 1-D tensors represents the values of the output sparse
tensors.
* OutputList
output_shape: A list of 1-D tensors represents the shape of the output sparse
tensors.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
SparseSplit(Pointer p)
Pointer cast constructor.
|
SparseSplit(Scope scope,
Input split_dim,
Input indices,
Input values,
Input shape,
long num_split) |
Modifier and Type | Method and Description |
---|---|
Operation |
operation() |
SparseSplit |
operation(Operation setter) |
OutputVector |
output_indices() |
SparseSplit |
output_indices(OutputVector setter) |
OutputVector |
output_shape() |
SparseSplit |
output_shape(OutputVector setter) |
OutputVector |
output_values() |
SparseSplit |
output_values(OutputVector setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public SparseSplit(Pointer p)
Pointer(Pointer)
.public SparseSplit operation(Operation setter)
@ByRef @Cast(value="tensorflow::OutputList*") public OutputVector output_indices()
public SparseSplit output_indices(OutputVector setter)
@ByRef @Cast(value="tensorflow::OutputList*") public OutputVector output_values()
public SparseSplit output_values(OutputVector setter)
@ByRef @Cast(value="tensorflow::OutputList*") public OutputVector output_shape()
public SparseSplit output_shape(OutputVector setter)
Copyright © 2022. All rights reserved.