# tensorflow::ops::SparseSlice

`#include <sparse_ops.h>`

Slice a `SparseTensor` based on the `start` and `size`.

## Summary

For example, if the input is

```
input_tensor = shape = [2, 7]
[    a   d e  ]
[b c          ]
```

<br />

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  ]
[      ]
```

<br />

Arguments:

- scope: A [Scope](https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_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.

<br />

Returns:

- `https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output` output_indices
- `https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output` output_values: A list of 1-D tensors represents the values of the output sparse tensors.
- `https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output` output_shape: A list of 1-D tensors represents the shape of the output sparse tensors.

<br />

| ### Constructors and Destructors ||
|---|---|
| `https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/ops/sparse-slice#classtensorflow_1_1ops_1_1_sparse_slice_1ae85f2c76a6927e51533cbd7f29023384(const ::https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope & scope, ::https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input indices, ::https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input values, ::https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input shape, ::https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input start, ::https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input size)` ||

| ### Public attributes ||
|---|---|
| `https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/ops/sparse-slice#classtensorflow_1_1ops_1_1_sparse_slice_1aed4bb735de50f6dd5197a9c1f1e0c495` | `https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation` |
| `https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/ops/sparse-slice#classtensorflow_1_1ops_1_1_sparse_slice_1aaecbd9e39db620d14102a63edfcd268b` | `::https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output` |
| `https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/ops/sparse-slice#classtensorflow_1_1ops_1_1_sparse_slice_1a9bb1a626ae5c8aba33b1fc1faad36c60` | `::https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output` |
| `https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/ops/sparse-slice#classtensorflow_1_1ops_1_1_sparse_slice_1ac1c6b7424ce33a53834c6c362ae8790a` | `::https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output` |

## Public attributes

### operation

```
Operation operation
```

### output_indices

```
::tensorflow::Output output_indices
```

### output_shape

```
::tensorflow::Output output_shape
```

### output_values

```
::tensorflow::Output output_values
```

## Public functions

### SparseSlice

```
 SparseSlice(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input indices,
  ::tensorflow::Input values,
  ::tensorflow::Input shape,
  ::tensorflow::Input start,
  ::tensorflow::Input size
)
```