@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.SparseSlice extends Pointer
SparseTensor based on the start and size.
For example, if the input is
input_tensor = shape = [2, 7]
[ a d e ]
[b c ]
Graphically the output tensors are:
sparse_slice([0, 0], [2, 4]) = shape = [2, 4]
[ a ]
[b c ]
sparse_slice([0, 4], [2, 3]) = shape = [2, 3]
[ d e ]
[ ]
Arguments:
* scope: A Scope object
* 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.
* start: 1-D. tensor represents the start of the slice.
* size: 1-D. tensor represents the size of the slice.
output indices: A list of 1-D tensors represents the indices of the output
sparse tensors.
Returns:
* Output output_indices
* Output output_values: A list of 1-D tensors represents the values of the output sparse
tensors.
* Output output_shape: A list of 1-D tensors represents the shape of the output sparse
tensors.Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
SparseSlice(Pointer p)
Pointer cast constructor.
|
SparseSlice(tensorflow.Scope scope,
tensorflow.Input indices,
tensorflow.Input values,
tensorflow.Input shape,
tensorflow.Input start,
tensorflow.Input size) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Operation |
operation() |
tensorflow.SparseSlice |
operation(tensorflow.Operation operation) |
tensorflow.Output |
output_indices() |
tensorflow.SparseSlice |
output_indices(tensorflow.Output output_indices) |
tensorflow.Output |
output_shape() |
tensorflow.SparseSlice |
output_shape(tensorflow.Output output_shape) |
tensorflow.Output |
output_values() |
tensorflow.SparseSlice |
output_values(tensorflow.Output output_values) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic SparseSlice(Pointer p)
Pointer.Pointer(Pointer).public SparseSlice(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input indices, @ByVal tensorflow.Input values, @ByVal tensorflow.Input shape, @ByVal tensorflow.Input start, @ByVal tensorflow.Input size)
@ByRef public tensorflow.Operation operation()
public tensorflow.SparseSlice operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output output_indices()
public tensorflow.SparseSlice output_indices(tensorflow.Output output_indices)
@ByRef public tensorflow.Output output_values()
public tensorflow.SparseSlice output_values(tensorflow.Output output_values)
@ByRef public tensorflow.Output output_shape()
public tensorflow.SparseSlice output_shape(tensorflow.Output output_shape)
Copyright © 2019. All rights reserved.