テンソルフロー::作戦::スパーススライス

#include <sparse_ops.h>

startsizeに基づいて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 次元テンソルは、スパース テンソルのインデックスを表します。
  • 値: 1 次元テンソルはスパース テンソルの値を表します。
  • 形状: 1-D。 tensor はスパース テンソルの形状を表します。
  • 開始: 1-D。テンソルはスライスの開始を表します。
  • サイズ: 1-D。テンソルはスライスのサイズを表します。出力インデックス: 1 次元テンソルのリストは、出力スパース テンソルのインデックスを表します。

戻り値:

  • Outputインデックス
  • Output Output_values: 1 次元テンソルのリストは、出力スパース テンソルの値を表します。
  • Output Output_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
)