Skip to content

Supports subgraph in the light API #48

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 18 commits into from
Nov 13, 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 Nov 12, 2023
commit d75473f8d411087e4cc348427b89ef5fcaa224bc
6 changes: 6 additions & 0 deletions _doc/api/light_api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ translate
Classes for the Light API
=========================

ProtoType
+++++++++

.. autoclass:: onnx_array_api.light_api.model.ProtoType
:members:

OnnxGraph
+++++++++

Expand Down
2 changes: 2 additions & 0 deletions _unittests/ut_npx/test_npx.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import inspect
import unittest
import sys
from contextlib import redirect_stdout
from io import StringIO

Expand Down Expand Up @@ -1355,6 +1356,7 @@ def test_clip_none(self):
got = ref.run(None, {"A": x})
self.assertEqualArray(y, got[0])

@unittest.skipIf(sys.platform == "win32", reason="unstable on windows")
def test_arange_inline(self):
# arange(5)
f = arange_inline(Input("A"))
Expand Down
5 changes: 5 additions & 0 deletions onnx_array_api/light_api/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@


class ProtoType(IntEnum):
"""
The same code can be used to output a GraphProto, a FunctionProto or a ModelProto.
This class specifies the output type at the beginning of the code.
"""

FUNCTION = 1
GRAPH = 2
MODEL = 3
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