tensorflow::ops::DenseBincount

#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
  • Input: Tensor integer 1D atau 2D.
  • ukuran: Tensor skalar bilangan bulat non-negatif.
  • bobot: adalah Tensor int32, int64, float32, atau float64 dengan bentuk yang sama seperti arr , 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

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)

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::DenseBincount::Attrs

Pengaturan atribut opsional untuk DenseBincount .

Atribut publik

operasi

Operation operation

keluaran

::tensorflow::Output output

Fungsi publik

Jumlah Bin Padat

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

Jumlah Bin Padat

 DenseBincount(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input size,
  ::tensorflow::Input weights,
  const DenseBincount::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
)