tensorflow::ops::SparseBincount

#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
  • İndeksler: 2D int64 Tensor .
  • Değerler: 1 boyutlu tamsayı Tensor .
  • dense_shape: 1 boyutlu int64 Tensor .
  • boyut: negatif olmayan tamsayı skalar Tensor .
  • Ağırlıklar: input 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.

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

  • binary_output: bool; Çekirdeğin görünme sayısını mı yoksa oluşma sayısını mı sayması gerektiği.

İadeler:

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

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

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)

Genel özellikler

operation
output

Kamusal işlevler

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

Herkese açık statik fonksiyonlar

BinaryOutput (bool x)

Yapılar

tensorflow::ops::SparseBincount::Attrs

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

Genel özellikler

operasyon

Operation operation

çıktı

::tensorflow::Output output

Kamusal işlevler

SeyrekBinsayımı

 SparseBincount(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input indices,
  ::tensorflow::Input values,
  ::tensorflow::Input dense_shape,
  ::tensorflow::Input size,
  ::tensorflow::Input weights
)

SeyrekBinsayımı

 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
)

düğüm

::tensorflow::Node * node() const 

operatör::tensorflow::Giriş

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

Herkese açık statik fonksiyonlar

İkiliÇıktı

Attrs BinaryOutput(
  bool x
)