#include <math_ops.h>
Computes the maximum of elements across dimensions of a tensor.
Reduces input
along the dimensions given in axis
. Unless keep_dims
is true, the rank of the tensor is reduced by 1 for each entry in axis
. If keep_dims
is true, the reduced dimensions are retained with length 1.
Arguments:
[-rank(input), rank(input))
.Optional attributes (see Attrs
):
Returns:
Output
: The reduced tensor.Aliases:
Constructors and Destructors | |
---|---|
Max(const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input axis) | |
Max(const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input axis, const Max::Attrs & attrs) |
Public attributes | |
---|---|
output |
Public functions | |
---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const |
Public static functions | |
---|---|
KeepDims(bool x) |
Structs | |
---|---|
tensorflow::ops::Max::Attrs | Optional attribute setters for Max. |
::tensorflow::Output output
Max( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input axis )
Max( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input axis, const Max::Attrs & attrs )
::tensorflow::Node * node() const
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Attrs KeepDims( bool 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/max.html