.. max.rst:

###
Max
###

.. code-block:: cpp

   Max  // Max reduction


Description
===========

Reduces the tensor, eliminating the specified reduction axes by taking the maximum element.

Inputs
------

+-----------------+-------------------------+-------------------------------------+
| Name            | Element Type            | Shape                               |
+=================+=========================+=====================================+
| ``arg``         | Any                     | :math:`(d_1,\dots,d_n)~(n \geq 0)`  |
+-----------------+-------------------------+-------------------------------------+

Attributes
----------
+--------------------+----------------------------------------------------------------+
| Name               | Description                                                    |
+====================+================================================================+
| ``reduction_axes`` | The axis positions (0-based) on which to calculate the max     |
+--------------------+----------------------------------------------------------------+

Outputs
-------

+-----------------+-------------------------+------------------------------------------------+
| Name            | Element Type            | Shape                                          |
+=================+=========================+================================================+
| ``output``      | Same as ``arg``         | :math:`(d_i:i\not\in \mathtt{reduction_axes})` |
+-----------------+-------------------------+------------------------------------------------+


C++ Interface
=============

.. doxygenclass:: ngraph::op::Max
   :project: ngraph
   :members: m_axes