tensorflow:: ops:: SparseBincount

#include <math_ops.h>

整数配列内の各値の出現回数をカウントします。

まとめ

長さがsizeで、 weights型がweightsと同じのベクトルを出力します。weights が空の場合、インデックスiには、 arr内で値iがカウントされた回数が格納されます。weights weights空でない場合、インデックスiには、 arr内の対応する値がiである各インデックスにおけるweightsの値の合計が格納されます。

[0, size) の範囲外のarrの値は無視されます。

議論:

  • スコープ:スコープオブジェクト
  • インデックス: 2D int64 Tensor 。
  • 値: 1D int Tensor 。
  • dense_shape: 1D int64 Tensor 。
  • サイズ: 非負の整数スカラーTensor 。
  • weights: は、 inputと同じ形状の int32、int64、float32、または float64 Tensor 、あるいは長さ 0 のTensorです。長さ 0 の場合は、すべての重みが 1 に等しいものとして機能します。

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

  • binary_output: bool; カーネルが出現回数または出現回数をカウントするかどうか。

返品:

  • Output :長さがsizeに等しい 1 次元Tensor 、または [batch_size, size ] の 2 次元Tensor 。範囲 [0, size) 内の各値のカウントまたは合計重み。

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

SparseBincount (const :: tensorflow::Scope & scope, :: tensorflow::Input indices, :: tensorflow::Input values, :: tensorflow::Input dense_shape, :: tensorflow::Input size, :: tensorflow::Input weights)
SparseBincount (const :: tensorflow::Scope & scope, :: tensorflow::Input indices, :: tensorflow::Input values, :: tensorflow::Input dense_shape, :: tensorflow::Input size, :: tensorflow::Input weights, const SparseBincount::Attrs & attrs)

公開属性

operation
output

公的機能

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

パブリック静的関数

BinaryOutput (bool x)

構造

tensorflow:: ops:: SparseBincount:: Attrs

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

公開属性

手術

Operation operation

出力

::tensorflow::Output output

公的機能

SparseBincount

 SparseBincount(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input indices,
  ::tensorflow::Input values,
  ::tensorflow::Input dense_shape,
  ::tensorflow::Input size,
  ::tensorflow::Input weights
)

SparseBincount

 SparseBincount(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input indices,
  ::tensorflow::Input values,
  ::tensorflow::Input dense_shape,
  ::tensorflow::Input size,
  ::tensorflow::Input weights,
  const SparseBincount::Attrs & attrs
)

ノード

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

パブリック静的関数

バイナリ出力

Attrs BinaryOutput(
  bool x
)