Skip to content

First sketch of a very simple API to create simple graphs #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Nov 1, 2023
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy