Tensorflow :: ops :: Multinomial
#include <random_ops.h>
Zeichnet Stichproben aus einer Multinomialverteilung.
Zusammenfassung
Argumente:
- scope: Ein Scope- Objekt
- logits: 2-D- Tensor mit Form
[batch_size, num_classes]
. Jedes Slice[i, :]
::[i, :]
repräsentiert die nicht normalisierten Protokollwahrscheinlichkeiten für alle Klassen. - num_samples: 0-D. Anzahl der unabhängigen Stichproben, die für jede Zeilenscheibe gezogen werden sollen.
Optionale Attribute (siehe Attrs
):
- Startwert: Wenn entweder Startwert oder Startwert2 auf einen Wert ungleich Null gesetzt ist, wird der interne Zufallszahlengenerator durch den angegebenen Startwert festgelegt. Andernfalls wird ein zufälliger Startwert verwendet.
- seed2: Ein zweiter Samen, um eine Samenkollision zu vermeiden.
Kehrt zurück:
-
Output
: 2-D- Tensor mit Form[batch_size, num_samples]
. Jedes Slice[i, :]
[0, num_classes)
[i, :]
enthält die gezeichneten Klassenbeschriftungen mit dem Bereich[0, num_classes)
.
Konstruktoren und Destruktoren | |
---|---|
Multinomial (const :: tensorflow::Scope & scope, :: tensorflow::Input logits, :: tensorflow::Input num_samples) | |
Multinomial (const :: tensorflow::Scope & scope, :: tensorflow::Input logits, :: tensorflow::Input num_samples, const Multinomial::Attrs & attrs) |
Öffentliche Attribute | |
---|---|
operation | |
output |
Öffentliche Funktionen | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Öffentliche statische Funktionen | |
---|---|
OutputDtype (DataType x) | |
Seed (int64 x) | |
Seed2 (int64 x) |
Strukturen | |
---|---|
tensorflow :: ops :: Multinomial :: Attrs | Optionale Attributsetzer für Multinomial . |
Öffentliche Attribute
Operation
Operation operation
Ausgabe
::tensorflow::Output output
Öffentliche Funktionen
Multinomial
Multinomial( const ::tensorflow::Scope & scope, ::tensorflow::Input logits, ::tensorflow::Input num_samples )
Multinomial
Multinomial( const ::tensorflow::Scope & scope, ::tensorflow::Input logits, ::tensorflow::Input num_samples, const Multinomial::Attrs & attrs )
Knoten
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const
Öffentliche statische Funktionen
OutputDtype
Attrs OutputDtype( DataType x )
Samen
Attrs Seed( int64 x )
Seed2
Attrs Seed2( int64 x )