convert.rst 1.64 KB
Newer Older
1 2 3 4 5 6
.. convert.rst:

#######
Convert
#######

7 8 9 10 11
.. code-block:: cpp
   
   Convert // Convert a tensor from one element type to another


12 13 14
Description
===========

15
.. TODO 
16

17
Long description
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33

Inputs
------

+-----------------+-------------------------+--------------------------------+
| Name            | Element Type            | Shape                          |
+=================+=========================+================================+
| ``arg``         | Any                     | Any                            |
+-----------------+-------------------------+--------------------------------+

Attributes
----------

+------------------+---------------------------+---------------------------------+
| Name             | Type                      | Notes                           |
+==================+===========================+=================================+
34
| ``element_type`` | ``ngraph::element::type`` | The element type of the result  |
35 36 37 38 39 40 41 42
+------------------+---------------------------+---------------------------------+

Outputs
-------

+-----------------+-------------------------+--------------------------------+
| Name            | Element Type            | Shape                          |
+=================+=========================+================================+
43
| ``output``      | ``element_type``        | Same as ``arg``                |
44 45 46 47 48 49 50 51
+-----------------+-------------------------+--------------------------------+


Backprop
========

.. math::

52
   \overline{\mathtt{arg}} \leftarrow \mathtt{Convert}(\Delta,\mathtt{arg->get_element_type()})
53 54 55 56 57 58


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

.. doxygenclass:: ngraph::op::Convert
59
   :project: ngraph
60
   :members: