tensorflow:: ops:: Shape
#include <array_ops.h>
Returns the shape of a tensor.
Summary
This operation returns a 1-D integer tensor representing the shape of input
.
For example:
# 't' is [[[1, 1, 1], [2, 2, 2]], [[3, 3, 3], [4, 4, 4]]] shape(t) ==> [2, 2, 3]
Arguments:
- scope: A Scope object
Returns:
Output
: The output tensor.
Constructors and Destructors |
|
---|---|
Shape(const ::tensorflow::Scope & scope, ::tensorflow::Input input)
|
|
Shape(const ::tensorflow::Scope & scope, ::tensorflow::Input input, const Shape::Attrs & attrs)
|
Public attributes |
|
---|---|
operation
|
|
output
|
Public functions |
|
---|---|
node() const
|
::tensorflow::Node *
|
operator::tensorflow::Input() const
|
|
operator::tensorflow::Output() const
|
|
Public static functions |
|
---|---|
OutType(DataType x)
|
Structs |
|
---|---|
tensorflow:: |
Optional attribute setters for Shape. |
Public attributes
operation
Operation operation
output
::tensorflow::Output output
Public functions
Shape
Shape( const ::tensorflow::Scope & scope, ::tensorflow::Input input )
Shape
Shape( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const Shape::Attrs & attrs )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Public static functions
OutType
Attrs OutType( DataType x )