parameter.rst 1.54 KB
Newer Older
1 2 3 4 5 6
.. parameter.rst

#########
Parameter
#########

Leona C's avatar
Leona C committed
7
.. code-block:: cpp
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27

   Parameter // A function parameter.

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

Parameters are nodes that represent the arguments that will be passed
to user-defined functions.  Function creation requires a sequence of
parameters.

Attributes
----------

+------------------+------------------------------------------+
| Name             | Description                              |
+==================+==========================================+
| ``element_type`` | The ``element::Type`` of the parameter.  |
+------------------+------------------------------------------+
| ``shape``        | The ``Shape`` of the parameter.          |
+------------------+------------------------------------------+
28 29 30
| ``cacheable``    | True if the parameter is not expected to |
|                  | be frequently updated.                   |
+------------------+------------------------------------------+
31 32 33 34 35 36 37 38 39 40

Outputs
-------

+------------+------------------+------------+
| Name       | Element type     | Shape      |
+============+==================+============+
| ``output`` | ``element_type`` | ``shape``  |
+------------+------------------+------------+

Leona C's avatar
Leona C committed
41 42 43
A ``Parameter`` produces the value of the tensor passed to the function 
in the position of the parameter in the function's arguments. The passed 
tensor must have the element type and shape specified by the parameter.
44 45 46 47 48 49 50 51 52 53 54 55

Backprop
========

.. math::

   \leftarrow \Delta


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

Leona C's avatar
Leona C committed
56
.. doxygenclass:: ngraph::op::v0::Parameter
57 58
   :project: ngraph
   :members: