min.rst 1.65 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
.. min.rst:

###
Min
###

.. code-block:: cpp

   Min  // Min reduction


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

Reduces the tensor, eliminating the specified reduction axes by taking the minimum 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                                          |
+=================+=========================+================================================+
40
| ``output``      | Same as ``arg``         | :math:`(d_i:i\not\in \mathtt{reduction_axes})` |
41 42 43 44 45 46 47 48 49
+-----------------+-------------------------+------------------------------------------------+


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

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