W3cubDocs

/TensorFlow C++

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:

Returns:

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.

Public attributes

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
)

© 2017 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