テンソルフロー::作戦:: SerializeManySparse

#include <sparse_ops.h>

NミニバッチSparseTensor [N, 3] Tensorオブジェクトにシリアル化します。

まとめ

SparseTensorランクR 1 より大きくなければならず、最初の次元はミニバッチ次元として扱われます。 SparseTensorの要素は、この最初の次元の昇順で並べ替える必要があります。 serialized_sparseの各行に入るシリアル化されたSparseTensorオブジェクトのランクはR-1になります。

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

引数:

  • スコープ:スコープオブジェクト
  • sparse_indices: 2 次元。ミニバッチSparseTensorindices
  • sparse_values: 1-D。ミニバッチSparseTensorvalues
  • sparse_shape: 1-D。ミニバッチSparseTensorshape

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

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

戻り値:

  • Output : シリアライズされた_sparse テンソル。

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

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 

演算子::tensorflow::入力

 operator::tensorflow::Input() const 

演算子::tensorflow::出力

 operator::tensorflow::Output() const 

パブリック静的関数

OutType

Attrs OutType(
  DataType x
)