テンソルフロー::作戦::ビンカウント

#include <math_ops.h>

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

まとめ

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

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

引数:

  • スコープ:スコープオブジェクト
  • arr: int32 Tensor
  • サイズ: 非負の int32 スカラーTensor
  • Weights: は、 arrと同じ形状を持つ int32、int64、float32、または float64 Tensor 、または length-0 Tensorです。この場合、すべての重みが 1 に等しいものとして機能します。

戻り値:

  • Output : sizeと長さが等しい 1D Tensor 。 [0, サイズ) の範囲内の各値のカウントまたは合計重み。

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

Bincount (const :: tensorflow::Scope & scope, :: tensorflow::Input arr, :: tensorflow::Input size, :: tensorflow::Input weights)

パブリック属性

bins
operation

公共機能

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

パブリック属性

ゴミ箱

::tensorflow::Output bins

手術

Operation operation

公共機能

ビンカウント

 Bincount(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input arr,
  ::tensorflow::Input size,
  ::tensorflow::Input weights
)

ノード

::tensorflow::Node * node() const 

演算子::tensorflow::入力

 operator::tensorflow::Input() const 

演算子::tensorflow::出力

 operator::tensorflow::Output() const