tensor akışı:: işlem:: YoğunBincount

#include <math_ops.h>

Bir tamsayı dizisindeki her değerin oluşum sayısını sayar.

Özet

Uzunluk size ve weights aynı türde bir vektör çıktısı alır. weights boşsa, indeks i arr içinde i değerinin kaç kez sayıldığını saklar. weights boş değilse, indeks i 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 dikkate alınmaz.

Argümanlar:

  • kapsam: Bir Kapsam nesnesi
  • giriş: 1D veya 2D int Tensor .
  • boyut: negatif olmayan int skaler Tensor .
  • ağırlıklar: arr ile aynı şekle sahip bir int32, int64, float32 veya float64 Tensor veya uzunluk-0 Tensor ; bu durumda tüm ağırlıklar 1'e eşit gibi davranır.

İsteğe bağlı özellikler (bkz. Attrs ):

  • ikili_çıktı: bool; Çekirdeğin görünümü veya oluşum sayısını sayması gerekip gerekmediği.

İadeler:

  • Output : size eşit uzunlukta 1D Tensor veya [batch_size, size ] ile 2D Tensor . [0, boyut) aralığındaki her değer için sayımlar veya toplam ağırlıklar.

Yapıcılar ve Yıkıcılar

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)

Genel özellikler

operation
output

Kamu işlevleri

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

Genel statik işlevler

BinaryOutput (bool x)

Yapılar

tensorflow:: ops:: DenseBincount:: Öznitelikler

DenseBincount için isteğe bağlı öznitelik ayarlayıcılar.

Genel özellikler

operasyon

Operation operation

çıktı

::tensorflow::Output output

Kamu işlevleri

YoğunBincount

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

YoğunBincount

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

düğüm

::tensorflow::Node * node() const 

operatör::tensorflow::Giriş

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

Genel statik işlevler

İkili Çıkış

Attrs BinaryOutput(
  bool x
)