W3cubDocs

/TensorFlow C++

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:

Returns:

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.

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
)

© 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/size.html