Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Supports for local functions in translator#96

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
sdpython merged 6 commits intomainfromlf
Feb 19, 2025
Merged
Changes from1 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
PrevPrevious commit
NextNext commit
fix ir_version
  • Loading branch information
@xadupre
xadupre committedFeb 19, 2025
commit00d0e7bef5c86a879bf70043df41fe6c38f4b54e
3 changes: 2 additions & 1 deletion_unittests/ut_translate_api/test_translate_builder.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -227,6 +227,7 @@ def test_local_function(self):
graph,
opset_imports=[oh.make_opsetid("", 14), oh.make_opsetid(new_domain, 1)],
functions=[linear_regression],
ir_version=10,
)
tr = Translater(onnx_model, emitter=BuilderEmitter("mm"))
code = tr.export(as_str=True)
Expand DownExpand Up@@ -260,7 +261,7 @@ def make_custom_LinearRegression(g: "GraphBuilder"):


def mm() -> "ModelProto":
g = GraphBuilder({'': 14, 'custom': 1}, ir_version=11)
g = GraphBuilder({'': 14, 'custom': 1}, ir_version=10)
g.make_tensor_input("X", TensorProto.FLOAT, ('', ''))
g.make_tensor_input("A", TensorProto.FLOAT, ('', ''))
g.make_tensor_input("B", TensorProto.FLOAT, ('', ''))
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp