tensorflow :: ops :: Bincount
#include <math_ops.h>
Bir tamsayı dizisindeki her bir değerin oluşum sayısını sayar.
Özet
Uzunluk size
ve weights
aynı tipe sahip bir vektör çıkarır. Eğer weights
boş, daha sonra dizin i
kez değeri numarasını saklar i
sayılır arr
. weights
boş değilse, i
indeksi, arr
içindeki karşılık gelen değerin i
olduğu her bir indeksteki weights
toplamını saklar.
[0, boyut) aralığının dışındaki arr
değerleri dikkate alınmaz.
Argümanlar:
- kapsam: Bir Scope nesnesi
- arr: int32
Tensor
. - boyut: negatif olmayan int32 skaler
Tensor
. - ağırlıklar:
arr
ile aynı şekle sahip bir int32, int64, float32 veya float64Tensor
veya uzunluk-0Tensor
, bu durumda tüm ağırlıklar 1'e eşit olarak işlev görür.
İadeler:
-
Output
: 1DTensor
uzunluğu için eşitsize
. [0, boyut) aralığındaki her değer için sayılar veya toplam ağırlıklar.
Yapıcılar ve Yıkıcılar | |
---|---|
Bincount (const :: tensorflow::Scope & scope, :: tensorflow::Input arr, :: tensorflow::Input size, :: tensorflow::Input weights) |
Genel özellikler | |
---|---|
bins | |
operation |
Kamusal işlevler | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Genel özellikler
çöp kutuları
::tensorflow::Output bins
operasyon
Operation operation
Kamusal işlevler
Bincount
Bincount( const ::tensorflow::Scope & scope, ::tensorflow::Input arr, ::tensorflow::Input size, ::tensorflow::Input weights )
düğüm
::tensorflow::Node * node() const
operator :: tensorflow :: Girdi
operator::tensorflow::Input() const
operator :: tensorflow :: Çıktı
operator::tensorflow::Output() const