tensorflow:: ops:: Bincount
#include <math_ops.h>整数配列内の各値の出現回数をカウントします。
まとめ
長さsizeで、 weightsと同じ dtype のベクトルを出力します。weights weights空の場合、インデックスiには、 arr内で値iがカウントされた回数が格納されます。weights weights空でない場合、インデックスiには、 arr内の対応する値がiである各インデックスにおけるweightsの値の合計が格納されます。
[0, size) の範囲外のarrの値は無視されます。
議論:
- スコープ:スコープオブジェクト
- arr: int32
Tensor。 - サイズ: 非負の int32 スカラー
Tensor。 - weights: は、
arrと同じ形状の int32、int64、float32、または float64Tensor、あるいは長さ 0 のTensorです。長さ 0 の場合は、すべての重みが 1 に等しいものとして機能します。
返品:
コンストラクターとデストラクタ | |
|---|---|
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
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const