blob: 269b7f51c7a46ecc0d297184c339230656585aa8 [file] [log] [blame]
``mx.symbol.Custom``
========================================
Description
----------------------
Apply a custom operator implemented in a frontend language (like Python).
Custom operators should override required methods like `forward` and `backward`.
The custom operator must be registered before it can be used.
Please check the tutorial here: https://mxnet.incubator.apache.org/api/faq/new_op
Usage
----------
.. code:: r
mx.symbol.Custom(...)
Arguments
------------------
+----------------------------------------+------------------------------------------------------------+
| Argument | Description |
+========================================+============================================================+
| ``data`` | NDArray-or-Symbol[]. |
| | |
| | Input data for the custom operator. |
+----------------------------------------+------------------------------------------------------------+
| ``op.type`` | string. |
| | |
| | Name of the custom operator. This is the name that is |
| | passed to `mx.operator.register` to register the |
| | operator. |
+----------------------------------------+------------------------------------------------------------+
| ``name`` | string, optional. |
| | |
| | Name of the resulting symbol. |
+----------------------------------------+------------------------------------------------------------+
Value
----------
``out`` The result mx.symbol
Link to Source Code: http://github.com/apache/incubator-mxnet/blob/1.6.0/src/operator/custom/custom.cc#L546