Tensorflow :: ops :: RandomGamma
#include <random_ops.h>
Gibt zufällige Werte aus den durch Alpha beschriebenen Gamma-Verteilungen aus.
Zusammenfassung
Diese Operation verwendet den Algorithmus von Marsaglia et al. Proben durch Transformations-Zurückweisung von Paaren einheitlicher und normaler Zufallsvariablen zu erhalten. Siehe http://dl.acm.org/citation.cfm?id=358414
Argumente:
- scope: Ein Scope- Objekt
- Form: 1-D Integer Tensor. Form unabhängiger Proben, die aus jeder Verteilung gezogen werden sollen, die durch die in Alpha angegebenen Formparameter beschrieben wird.
- Alpha: Ein Tensor, bei dem jeder Skalar ein "Form" -Parameter ist, der die zugehörige Gammaverteilung beschreibt.
Optionale Attribute (siehe Attrs
):
- Samen: Wenn entweder
seed
oderseed2
eingestellt sind ungleich Null zu sein, der Zufallszahlengenerator durch den gegebenen Samen ausgesät wird. Andernfalls wird es durch einen zufälligen Startwert ausgesät. - seed2: Ein zweiter Samen, um eine Samenkollision zu vermeiden.
Kehrt zurück:
-
Output
: Ein Tensor mit Formshape + shape(alpha)
. Jede[:, ..., :, i0, i1, ...iN]
enthält die füralpha[i0, i1, ...iN]
gezogenen Stichproben. Der dtype der Ausgabe entspricht dem dtype von alpha.
Konstruktoren und Destruktoren | |
---|---|
RandomGamma (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, :: tensorflow::Input alpha) | |
RandomGamma (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, :: tensorflow::Input alpha, const RandomGamma::Attrs & attrs) |
Öffentliche Attribute | |
---|---|
operation | |
output |
Öffentliche Funktionen | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Öffentliche statische Funktionen | |
---|---|
Seed (int64 x) | |
Seed2 (int64 x) |
Strukturen | |
---|---|
tensorflow :: ops :: RandomGamma :: Attrs | Optionale Attributsetzer für RandomGamma . |
Öffentliche Attribute
Operation
Operation operation
Ausgabe
::tensorflow::Output output
Öffentliche Funktionen
RandomGamma
RandomGamma( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input alpha )
RandomGamma
RandomGamma( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input alpha, const RandomGamma::Attrs & attrs )
Knoten
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const
Öffentliche statische Funktionen
Samen
Attrs Seed( int64 x )
Seed2
Attrs Seed2( int64 x )