Skip to content
Snippets Groups Projects
Commit abd2a7cb authored by Cyril Moineau's avatar Cyril Moineau
Browse files

Merge branch 'updatedoc' into 'master'

[Docs] Update ONNX API.

See merge request aidge/aidge!4
parents 76849be4 6ce17e86
No related branches found
No related tags found
No related merge requests found
aidge_backend_cpu @ e2fb16db
Subproject commit 67192853d7c2b0b0dc27c3efefa6db559215721f Subproject commit e2fb16db2ee45144216e246670d4cd481d033e54
aidge_core @ f2ea4dc9
Subproject commit f6f1c60c98cd7630ceba03aa6fc43ae7533e8330 Subproject commit f2ea4dc9f09ce82622c32284bfcd62bbe153579f
aidge_onnx @ af92d98b
Subproject commit cb865d494e4ed60a1d5e259ae9441421d9b188a8 Subproject commit af92d98bc39b31834cb937771043b2907d0f89b0
...@@ -3,3 +3,29 @@ Aidge ONNX API ...@@ -3,3 +3,29 @@ Aidge ONNX API
.. autofunction:: aidge_onnx.load_onnx .. autofunction:: aidge_onnx.load_onnx
Node converter
--------------
Register
~~~~~~~~
.. autofunction:: aidge_onnx.node_converter.register_converter
.. autofunction:: aidge_onnx.node_converter.supported_operators
.. autodecorator:: aidge_onnx.node_converter.auto_register
.. because defaultdict.__doc__ is readonly, Sphinx cannot use the docstring set in the code.
.. data:: aidge_onnx.node_converter.ONNX_NODE_CONVERTER_
This ``defaultdict`` maps the ONNX type to a function which can convert an ONNX Node into an Aidge Node.
This means that if a key is missing from :py:data:`aidge_onnx.node_converter.ONNX_NODE_CONVERTER_`, it will return the function :py:func:`aidge_onnx.node_converter.generic.import_generic` which import the ONNX node as an Aidge generic operator.
It is possible to add keys to this dictionnary at runtime using :py:func:`aidge_onnx.node_converter.register_converter` or :py:func:`aidge_onnx.node_converter.auto_register`
Converters
~~~~~~~~~~
.. autofunction:: aidge_onnx.node_converter.generic.import_generic
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment