#include <array_ops.h>
Returns the size of a tensor.
This operation returns an integer representing the number of elements in input
.
For example:
```prettyprint 't' is [[[1, 1,, 1], [2, 2, 2]], [[3, 3, 3], [4, 4, 4]]]]
size(t) ==> 12 ```
Arguments:
Returns:
Output
: The output tensor. Constructors and Destructors | |
---|---|
Size(const ::tensorflow::Scope & scope, ::tensorflow::Input input) | |
Size(const ::tensorflow::Scope & scope, ::tensorflow::Input input, const Size::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::Size::Attrs | Optional attribute setters for Size. |
::tensorflow::Output output
Size( const ::tensorflow::Scope & scope, ::tensorflow::Input input )
Size( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const Size::Attrs & attrs )
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output() const
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/size.html