#include <sparse_ops.h>
Slice a 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:
Returns:
Output
output_indicesOutput
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. Constructors and Destructors | |
---|---|
SparseSlice(const ::tensorflow::Scope & scope, ::tensorflow::Input indices, ::tensorflow::Input values, ::tensorflow::Input shape, ::tensorflow::Input start, ::tensorflow::Input size) |
Public attributes | |
---|---|
output_indices | |
output_shape | |
output_values |
::tensorflow::Output output_indices
::tensorflow::Output output_shape
::tensorflow::Output output_values
SparseSlice( const ::tensorflow::Scope & scope, ::tensorflow::Input indices, ::tensorflow::Input values, ::tensorflow::Input shape, ::tensorflow::Input start, ::tensorflow::Input size )
© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/sparse-slice.html