tensorflow::ops::SparseSlice
#include <sparse_ops.h>
Вырезание части SparseTensor на основе start и size.
Краткое описание
Например, если входными данными являются
input_tensor = shape = [2, 7] [ a d e ] [b c ]
Графически выходные тензоры будут:
sparse_slice([0, 0], [2, 4]) = shape = [2, 4] [ a ] [b c ] sparse_slice([0, 4], [2, 3]) = shape = [2, 3] [ d e ] [ ]
Аргументы:
- scope: Объект Scope
- indices: 2-мерный тензор, представляющий индексы разреженного тензора.
- values: 1-мерный тензор, представляющий значения разреженного тензора.
- shape: 1-мерный тензор, представляющий форму разреженного тензора.
- start: 1-мерный тензор, представляющий начало среза.
- size: 1-мерный тензор, представляющий размер среза. выходные индексы: Список 1-мерных тензоров, представляющих индексы выходных разреженных тензоров.
Возвращаемые значения:
-
Outputoutput_indices -
Outputoutput_values: Список 1-мерных тензоров, представляющих значения выходных разреженных тензоров. -
Outputoutput_shape: Список 1-мерных тензоров, представляющих форму выходных разреженных тензоров.
| Конструкторы и деструкторы | |
|---|---|
SparseSlice(const ::tensorflow::Scope & scope, ::tensorflow::Input indices, ::tensorflow::Input values, ::tensorflow::Input shape, ::tensorflow::Input start, ::tensorflow::Input size) |
| Общедоступные атрибуты | |
|---|---|
operation | |
output_indices | |
output_shape | |
output_values | |
Общедоступные атрибуты
operation
Operation operation
output_indices
::tensorflow::Output output_indices
output_shape
::tensorflow::Output output_shape
output_values
::tensorflow::Output output_values
Общедоступные функции
SparseSlice
SparseSlice( const ::tensorflow::Scope & scope, ::tensorflow::Input indices, ::tensorflow::Input values, ::tensorflow::Input shape, ::tensorflow::Input start, ::tensorflow::Input size )
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/sparse-slice