-
Notifications
You must be signed in to change notification settings - Fork 65
[Migration][DO NOT MERGE] Separate old ir into _legacy_ir
folder
#1332
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
Conversation
All tests except for linter are expected to pass. [ghstack-poisoned]
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## gh/BowenBao/24/base #1332 +/- ##
=======================================================
+ Coverage 64.16% 64.17% +0.01%
=======================================================
Files 135 136 +1
Lines 19019 19019
Branches 3120 3120
=======================================================
+ Hits 12204 12206 +2
+ Misses 6318 6316 -2
Partials 497 497 ☔ View full report in Codecov by Sentry. |
Test Results 24 files ± 0 24 suites ±0 21m 24s ⏱️ + 1m 42s For more details on these failures, see this check. Results for commit d0b0c34. ± Comparison against base commit 290d21e. ♻️ This comment has been updated with latest results. |
@@ -0,0 +1,297 @@ | |||
from __future__ import annotations |
Check warning
Code scanning / lintrunner
RUFF/I001
@@ -0,0 +1,297 @@ | |||
from __future__ import annotations |
Check warning
Code scanning / lintrunner
RUFF/format
…RGE] Separate old ir into `_legacy_ir` folder" All tests except for linter are expected to pass. [ghstack-poisoned]
…ir into `_legacy_ir` folder" All tests except for linter are expected to pass. [ghstack-poisoned]
return self.node | ||
|
||
def def_index(self) -> int: | ||
return self.output_index |
Check failure
Code scanning / lintrunner
MYPY/return-value
shape = self.shape | ||
if shape is not None: | ||
shape = [str(dim) for dim in shape] | ||
shape_str = f"[{', '.join(shape)}]" |
Check failure
Code scanning / lintrunner
MYPY/arg-type
class Function: | ||
def __init__(self, function_proto: onnx.FunctionProto): | ||
self.original_function_proto = function_proto | ||
self.nodes = deque() |
Check failure
Code scanning / lintrunner
MYPY/var-annotated
def __init__(self, function_proto: onnx.FunctionProto): | ||
self.original_function_proto = function_proto | ||
self.nodes = deque() | ||
self.values = {} |
Check failure
Code scanning / lintrunner
MYPY/var-annotated
self.attributes: dict[str, int | float | RefAttr | Graph | list[Graph]] = {} | ||
|
||
def get_attribute(self, name: str) -> int | float | None: | ||
return self.attributes.get(name, None) |
Check failure
Code scanning / lintrunner
MYPY/return-value
Be sure to remove reference from ir/init.py as well? |
…o `_legacy_ir` folder" All tests except for linter are expected to pass. [ghstack-poisoned]
@@ -7,8 +7,8 @@ | |||
import onnxscript | |||
from packaging import version | |||
|
|||
from onnxscript import ir | |||
from onnxscript.ir import visitor | |||
import onnxscript._legacy_ir as ir |
Check notice
Code scanning / lintrunner
PYLINT/C0412
…arate old ir into `_legacy_ir` folder" All tests except for linter are expected to pass. [ghstack-poisoned]
…` folder" All tests except for linter are expected to pass. [ghstack-poisoned]
… ir into `_legacy_ir` folder" All tests except for linter are expected to pass. [ghstack-poisoned]
Squashed of the following steps: - #1328 - #1329 - #1330 - #1331 - #1332 - #1333 - #1343 - #1345 Co-authored-by: Shubham Bhokare <[email protected]> Co-authored-by: Justin Chu <[email protected]> Co-authored-by: Xavier Dupré <[email protected]> Co-authored-by: "G. Ramalingam" <[email protected]> Co-authored-by: kunal-vaishnavi <[email protected]> Co-authored-by: Ti-Tai Wang <[email protected]> [ghstack-poisoned]
Squashed of the following steps: - #1328 - #1329 - #1330 - #1331 - #1332 - #1333 - #1343 - #1345 Co-authored-by: Shubham Bhokare <32080845+shubhambhokare1users.noreply.github.com> Co-authored-by: Justin Chu <justinchubyusers.noreply.github.com> Co-authored-by: Xavier Dupré <xadupreusers.noreply.github.com> Co-authored-by: "G. Ramalingam" <gramamicrosoft.com> Co-authored-by: kunal-vaishnavi <115581922+kunal-vaishnaviusers.noreply.github.com> Co-authored-by: Ti-Tai Wang <titaiwangmicrosoft.com> [ghstack-poisoned]
Squashed of the following steps: - #1328 - #1329 - #1330 - #1331 - #1332 - #1333 - #1343 - #1345 Co-authored-by: Shubham Bhokare <32080845+shubhambhokare1users.noreply.github.com> Co-authored-by: Justin Chu <justinchubyusers.noreply.github.com> Co-authored-by: Xavier Dupré <xadupreusers.noreply.github.com> Co-authored-by: "G. Ramalingam" <gramamicrosoft.com> Co-authored-by: kunal-vaishnavi <115581922+kunal-vaishnaviusers.noreply.github.com> Co-authored-by: Ti-Tai Wang <titaiwangmicrosoft.com> [ghstack-poisoned]
Stack from [ghstack](https://github.com/ezyang/ghstack) (oldest at bottom): * #1334 * #1340 * __->__ #1346 Squashed of the following steps: - #1328 - #1329 - #1330 - #1331 - #1332 - #1333 - #1343 - #1345 Co-authored-by: Shubham Bhokare <[email protected]> Co-authored-by: Justin Chu <[email protected]> Co-authored-by: Xavier Dupré <[email protected]> Co-authored-by: "G. Ramalingam" <[email protected]> Co-authored-by: kunal-vaishnavi <[email protected]> Co-authored-by: Ti-Tai Wang <[email protected]>
Close as squashed and merged into main. |
Stack from ghstack (oldest at bottom):
_legacy_ir
folder #1332All tests except for linter are expected to pass.