tensorflow::ops::Bincount

#include <math_ops.h>

Bir tamsayı dizisindeki her değerin kaç kez geçtiğini sayar.

Özet

Boyut size ve weights aynı veri tipine sahip bir vektör çıktısı verir. weights boşsa, i indeksi, arr i değerinin kaç kez sayıldığını saklar. weights boş değilse, i indeksi, arr karşılık gelen değerin i olduğu her indeksteki weights değerin toplamını saklar.

arr [0, size) aralığının dışındaki değerler göz ardı edilir.

Argümanlar:

  • kapsam: Bir Kapsam nesnesi
  • arr: int32 Tensor .
  • boyut: negatif olmayan int32 skalar Tensor .
  • Ağırlıklar: arr ile aynı şekle sahip bir int32, int64, float32 veya float64 Tensor veya uzunluğu 0 olan bir Tensor ; bu durumda tüm ağırlıklar 1'e eşitmiş gibi davranır.

İadeler:

  • Output : size eşit uzunlukta 1 boyutlu Tensor . [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 

operatör::tensorflow::Giriş

 operator::tensorflow::Input() const 

operatör::tensorflow::Çıktı

 operator::tensorflow::Output() const