テンソルフロー::作戦::スパースビンカウント
#include <math_ops.h>整数配列内の各値の出現数をカウントします。
まとめ
長さsizeと同じ dtype をweightsとして持つベクトルを出力します。 weightsが空の場合、インデックスiには、値iがカウントされた回数がarrに格納されます。 weightsが空でない場合、インデックスi 、 arrの対応する値がiである各インデックスのweightsの値の合計を格納します。
 [0, size) の範囲外のarrの値は無視されます。
引数:
- スコープ:スコープオブジェクト
- インデックス: 2D int64 Tensor。
- 値: 1D int Tensor。
-  Density_shape: 1D int64 Tensor。
- サイズ: 非負の int スカラーTensor。
-  Weights: は、 inputと同じ形状を持つ int32、int64、float32、または float64Tensor、または length-0Tensorです。この場合、すべての重みが 1 に等しいものとして機能します。
オプションの属性 ( Attrsを参照):
- binary_output: ブール値;カーネルが出現または出現回数をカウントする必要があるかどうか。
戻り値:
| コンストラクターとデストラクター | |
|---|---|
| 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( 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 )
ノード
::tensorflow::Node * node() const
演算子::tensorflow::入力
operator::tensorflow::Input() const
演算子::tensorflow::出力
operator::tensorflow::Output() const
パブリック静的関数
バイナリ出力
Attrs BinaryOutput( bool x )