Tensorflow :: ops :: EnsureShape
#include <array_ops.h>
Stellt sicher, dass die Form des Tensors mit der erwarteten Form übereinstimmt.
Zusammenfassung
Löst einen Fehler aus, wenn die Form des Eingangstensors nicht mit der angegebenen Form übereinstimmt. Gibt ansonsten den Eingangstensor zurück.
Argumente:
- scope: Ein Scope- Objekt
- Eingabe: Ein Tensor, dessen Form validiert werden soll.
- Form: Die erwartete (möglicherweise teilweise spezifizierte) Form des Eingangstensors.
Kehrt zurück:
-
Output
: Ein Tensor mit der gleichen Form und dem gleichen Inhalt wie der Eingabe-Tensor oder Wert.
Konstruktoren und Destruktoren | |
---|---|
EnsureShape (const :: tensorflow::Scope & scope, :: tensorflow::Input input, PartialTensorShape shape) |
Öffentliche Attribute | |
---|---|
operation | |
output |
Öffentliche Funktionen | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Öffentliche Attribute
Operation
Operation operation
Ausgabe
::tensorflow::Output output
Öffentliche Funktionen
EnsureShape
EnsureShape( const ::tensorflow::Scope & scope, ::tensorflow::Input input, PartialTensorShape shape )
Knoten
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Output
operator::tensorflow::Output() const