tensorflow::ops::SparseBincount

#include <math_ops.h>

Menghitung jumlah kemunculan setiap nilai dalam sebuah array bilangan bulat.

Ringkasan

Menghasilkan vektor dengan panjang size dan tipe data yang sama dengan weights . Jika weights kosong, maka index i menyimpan jumlah kemunculan nilai i dalam arr . Jika weights tidak kosong, maka index i menyimpan jumlah nilai dalam weights pada setiap indeks di mana nilai yang sesuai dalam arr adalah i .

Nilai-nilai dalam arr di luar rentang [0, size) akan diabaikan.

Argumen:

  • Cakupan: Objek Cakupan
  • indeks: Tensor 2D int64 .
  • nilai: Tensor int 1D.
  • dense_shape: Tensor 1D int64.
  • ukuran: Tensor skalar bilangan bulat non-negatif.
  • bobot: adalah Tensor int32, int64, float32, atau float64 dengan bentuk yang sama dengan input , atau Tensor dengan panjang 0, dalam hal ini bobotnya sama dengan 1.

Atribut opsional (lihat Attrs ):

  • binary_output: bool; Apakah kernel harus menghitung kemunculan atau jumlah kejadian.

Mengembalikan:

  • Output : Tensor 1D dengan panjang sama dengan size atau Tensor 2D dengan [batch_size, size ]. Jumlah atau total bobot untuk setiap nilai dalam rentang [0, size).

Konstruktor dan Destruktor

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)

Atribut publik

operation
output

Fungsi publik

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

Fungsi statis publik

BinaryOutput (bool x)

Struktur

tensorflow::ops::SparseBincount::Attrs

Pengaturan atribut opsional untuk SparseBincount .

Atribut publik

operasi

Operation operation

keluaran

::tensorflow::Output output

Fungsi publik

Jumlah Bin Jarang

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

Jumlah Bin Jarang

 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
)

simpul

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

Fungsi statis publik

Keluaran Biner

Attrs BinaryOutput(
  bool x
)