tensorflow:: ops:: SparseSlice
#include <sparse_ops.h> startとsizeに基づいてSparseTensorをスライスします。
まとめ
例えば、入力が
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 ] [ ]
議論:
- スコープ:スコープオブジェクト
- インデックス: 2次元テンソルは、疎テンソルのインデックスを表します。
- values: 1次元テンソルは、疎テンソルの値を表します。
- 形状: 1次元。テンソルは疎テンソルの形状を表します。
- start: 1次元テンソルはスライスの開始位置を表します。
- サイズ: 1次元テンソルはスライスのサイズを表します。出力インデックス: 1次元テンソルのリストは、出力スパーステンソルのインデックスを表します。
返品:
-
Outputインデックス 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
出力インデックス
::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 )