tensorflow:: ops:: SerializeManySparse

#include <sparse_ops.h>

Nミニバッチを持つSparseTensor [N, 3] Tensorオブジェクトにシリアライズします。

まとめ

SparseTensorランクRは 1 より大きい必要があり、最初の次元はミニバッチの次元として扱われます。SparseTensor の要素は、この最初の次元の昇順でソートする必要があります。serialized_sparse の各行に入るシリアルserialized_sparseされたSparseTensor SparseTensorのランクはR-1になります。

ミニバッチサイズNはsparse_shape[0]から抽出されます。

議論:

  • スコープ:スコープオブジェクト
  • sparse_indices: 2次元。ミニバッチSparseTensorのindices 。
  • sparse_values: 1次元。ミニバッチSparseTensorのvalues 。
  • sparse_shape: 1次元。ミニバッチSparseTensorのshape 。

オプション属性( Attrs参照):

  • out_type: シリアル化に使用するdtype 。サポートされている型はstring (デフォルト) とvariantです。

返品:

  • Output :シリアル化されたスパーステンソル。

コンストラクターとデストラクタ

SerializeManySparse (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape)
SerializeManySparse (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape, const SerializeManySparse::Attrs & attrs)

公開属性

operation
serialized_sparse

公的機能

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

パブリック静的関数

OutType (DataType x)

構造

tensorflow:: ops:: SerializeManySparse:: Attrs

SerializeManySparseのオプション属性セッター。

公開属性

手術

Operation operation

シリアル化されたスパース

::tensorflow::Output serialized_sparse

公的機能

SerializeManySparse

 SerializeManySparse(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input sparse_indices,
  ::tensorflow::Input sparse_values,
  ::tensorflow::Input sparse_shape
)

SerializeManySparse

 SerializeManySparse(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input sparse_indices,
  ::tensorflow::Input sparse_values,
  ::tensorflow::Input sparse_shape,
  const SerializeManySparse::Attrs & attrs
)

ノード

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

パブリック静的関数

出力タイプ

Attrs OutType(
  DataType x
)