tensorflow:: ops:: Size
#include <array_ops.h>
Returns the size of a tensor.
Summary
This operation returns an integer representing the number of elements in input
.
For example:
# 't' is [[[1, 1,, 1], [2, 2, 2]], [[3, 3, 3], [4, 4, 4]]]] size(t) ==> 12
Arguments:
- scope: A Scope object
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:: |
Optional attribute setters for Size. |
Public attributes
output
::tensorflow::Output output
Public functions
Size
Size( const ::tensorflow::Scope & scope, ::tensorflow::Input input )
Size
Size( const ::tensorflow::Scope & scope, ::tensorflow::Input input, const Size::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 )