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

#include <math_ops.h>

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

まとめ

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

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

引数:

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

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

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

戻り値:

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

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

DenseBincount (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input size, :: tensorflow::Input weights)
DenseBincount (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input size, :: tensorflow::Input weights, const DenseBincount::Attrs & attrs)

パブリック属性

operation
output

公共機能

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

パブリック静的関数

BinaryOutput (bool x)

構造体

tensorflow:: ops:: DenseBincount:: Attrs

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

パブリック属性

手術

Operation operation

出力

::tensorflow::Output output

公共機能

デンスビンカウント

 DenseBincount(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input size,
  ::tensorflow::Input weights
)

デンスビンカウント

 DenseBincount(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input size,
  ::tensorflow::Input weights,
  const DenseBincount::Attrs & attrs
)

ノード

::tensorflow::Node * node() const 

演算子::tensorflow::入力

 operator::tensorflow::Input() const 

演算子::tensorflow::出力

 operator::tensorflow::Output() const 

パブリック静的関数

バイナリ出力

Attrs BinaryOutput(
  bool x
)