Skip to content
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

IR playground #5644

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

IR playground #5644

wants to merge 3 commits into from

Conversation

justinchuby
Copy link
Contributor

Description

Motivation and Context


name: str
type: AttributeType
value: Any
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will not work for C++, but it would be nice in Python

Copy link

@github-advanced-security github-advanced-security bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lintrunner found more than 10 potential problems in the proposed changes. Check the Files changed tab for more details.

onnx/ir/_attributes.py Fixed Show fixed Hide fixed
onnx/ir/_values.py Fixed Show fixed Hide fixed
def __init__(
self,
name: str,
value: _protocols.GraphProtocol,

Check failure

Code scanning / lintrunner

MYPY/name-defined Error

Name "_protocols.GraphProtocol" is not defined To disable, use # type: ignore[name-defined]
def __init__(
self,
name: str,
value: Sequence[_protocols.GraphProtocol],

Check failure

Code scanning / lintrunner

MYPY/name-defined Error

Name "_protocols.GraphProtocol" is not defined To disable, use # type: ignore[name-defined]
@@ -0,0 +1,109 @@
"""Protocols derived from onnx/onnx.proto3"""

Check warning

Code scanning / lintrunner

BLACK-ISORT/format Warning

Run lintrunner -a to apply this patch.
@@ -0,0 +1,57 @@
import enum

Check warning

Code scanning / lintrunner

BLACK-ISORT/format Warning

Run lintrunner -a to apply this patch.
@@ -0,0 +1,248 @@
from __future__ import annotations

Check warning

Code scanning / lintrunner

BLACK-ISORT/format Warning

Run lintrunner -a to apply this patch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant