#include <array_ops.h>
Returns the shape of a tensor.
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:
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 | |
---|---|
output |
Public functions | |
---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const |
Public static functions | |
---|---|
OutType(DataType x) |
Structs | |
---|---|
tensorflow::ops::Shape::Attrs | Optional attribute setters for Shape. |
::tensorflow::Output output
Shape( const ::tensorflow::Scope & scope, ::tensorflow::Input input )
Shape( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const Shape::Attrs & attrs )
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Attrs OutType( DataType x )
© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/shape.html