Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
doc
  • Loading branch information
xadupre committed Oct 31, 2023
commit 92732d449d597e24e828db5cc5fca6e826709b61
2 changes: 1 addition & 1 deletion onnx_array_api/light_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def start(
Starts an onnx model.

:param opset: main opset version
:param is_function: a :epkg:`ModelProto` or a :epkg:`FunctionProto`
:param is_function: a :class:`onnx.ModelProto` or a :class:`onnx.FunctionProto`
:param opsets: others opsets as a dictionary
:return: an instance of :class:`onnx_array_api.light_api.OnnxGraph`

Expand Down
2 changes: 1 addition & 1 deletion onnx_array_api/light_api/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class OnnxGraph:
in a single line.

:param opset: main opset version
:param is_function: a :epkg:`ModelProto` or a :epkg:`FunctionProto`
:param is_function: a :class:`onnx.ModelProto` or a :class:`onnx.FunctionProto`
:param opsets: others opsets as a dictionary
"""

Expand Down
2 changes: 1 addition & 1 deletion onnx_array_api/npx/npx_function_implementation.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def get_function_implementation(
**kwargs: Any,
) -> FunctionProto:
"""
Returns a :epkg:`FunctionProto` for a specific proto.
Returns a :class:`onnx.FunctionProto` for a specific proto.

:param domop: domain, function
:param node_inputs: list of input names
Expand Down
7 changes: 4 additions & 3 deletions onnx_array_api/npx/npx_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ def rename_in_onnx_graph(
"""
Renames input results in a GraphProto.

:param graph: :epkg:`GraphProto`
:param graph: :class:`onnx.GraphProto`
:param replacements: replacements `{ old_name: new_name }`
:return: modified :epkg:`GraphProto` or None if no modifications
:return: modified :class:`onnx.GraphProto` or None if no modifications
were detected
"""

Expand Down Expand Up @@ -153,8 +153,9 @@ def onnx_model_to_function(
:param inputs2par: dictionary to move some inputs as attributes
`{ name: None or default value }`
:return: function, other functions

.. warning::
:epkg:`FunctionProto` does not support default values yet.
:class:`onnx.FunctionProto` does not support default values yet.
They are ignored.
"""
if isinstance(onx, ModelProto):
Expand Down