Tensorflow :: ops :: TruncatedNormal
#include <random_ops.h>
Gibt zufällige Werte aus einer abgeschnittenen Normalverteilung aus.
Zusammenfassung
Die generierten Werte folgen einer Normalverteilung mit dem Mittelwert 0 und der Standardabweichung 1, mit der Ausnahme, dass Werte, deren Größe mehr als 2 Standardabweichungen vom Mittelwert beträgt, gelöscht und erneut ausgewählt werden.
Argumente:
- scope: Ein Scope- Objekt
- Form: Die Form des Ausgangstensors.
- dtype: Der Typ der Ausgabe.
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 der angegebenen Form, der mit zufälligen abgeschnittenen Normalwerten gefüllt ist.
Konstruktoren und Destruktoren | |
---|---|
TruncatedNormal (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, DataType dtype) | |
TruncatedNormal (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, DataType dtype, const TruncatedNormal::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 :: TruncatedNormal :: Attrs | Optionale Attributsetzer für TruncatedNormal . |
Öffentliche Attribute
Operation
Operation operation
Ausgabe
::tensorflow::Output output
Öffentliche Funktionen
TruncatedNormal
TruncatedNormal( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, DataType dtype )
TruncatedNormal
TruncatedNormal( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, DataType dtype, const TruncatedNormal::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 )