przepływ tensorowy:: ops:: Gęsty Bincount
#include <math_ops.h>Zlicza liczbę wystąpień każdej wartości w tablicy liczb całkowitych.
Streszczenie
Wyprowadza wektor o długości size i tym samym dtype co weights . Jeśli weights są puste, indeks i przechowuje liczbę zliczeń wartości i w arr . Jeśli weights nie są puste, wówczas indeks i przechowuje sumę wartości w weights w każdym indeksie, któremu odpowiadająca wartość w arr wynosi i .
Wartości w arr spoza zakresu [0, rozmiar) są ignorowane.
Argumenty:
- zakres: Obiekt Scope
- wejście: 1D lub 2D int
Tensor. - rozmiar: nieujemny int skalarny
Tensor. - wagi: to
Tensorint32, int64, float32 lub float64 o tym samym kształcie coarrlubTensordługości-0, w którym to przypadku działa jak wszystkie wagi równe 1.
Opcjonalne atrybuty (patrz Attrs ):
- wyjście_binarne: bool; Określa, czy jądro powinno zliczać pojawienie się, czy liczbę wystąpień.
Zwroty:
-
Output:Tensor1D o długości równejsizelubTensor2D z [rozmiar_wsadu,size]. Liczby lub zsumowane wagi dla każdej wartości z zakresu [0, rozmiar).
Konstruktory i destruktory | |
|---|---|
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) |
Atrybuty publiczne | |
|---|---|
operation | |
output | |
Funkcje publiczne | |
|---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const | |
Publiczne funkcje statyczne | |
|---|---|
BinaryOutput (bool x) | |
Struktury | |
|---|---|
| tensorflow:: ops:: DenseBincount:: Atrybuty | Opcjonalne moduły ustawiające atrybuty dla DenseBincount . |
Atrybuty publiczne
działanie
Operation operation
wyjście
::tensorflow::Output output
Funkcje publiczne
Gęsty Bincount
DenseBincount( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input size, ::tensorflow::Input weights )
Gęsty Bincount
DenseBincount( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input size, ::tensorflow::Input weights, const DenseBincount::Attrs & attrs )
węzeł
::tensorflow::Node * node() const
operator::tensorflow::Wejście
operator::tensorflow::Input() const
operator::tensorflow::Wyjście
operator::tensorflow::Output() const
Publiczne funkcje statyczne
Wyjście binarne
Attrs BinaryOutput( bool x )