Skip to content

Conversation

- Moving files to new directories without changing.
- Merging ir/__init__.py with existing ir/__init__.py. The two IRs are expected to be merged in the future.

[ghstack-poisoned]
@BowenBao BowenBao changed the title [Migration] Restructure rewriter core under onnxscript [Migration][DO NOT MERGE] Restructure rewriter core under onnxscript Apr 1, 2024
)


Value = StaticValueInfo

Check warning

Code scanning / lintrunner

RUFF/F811

Redefinition of unused `Value` from line 88. See https://docs.astral.sh/ruff/rules/redefined-while-unused
Value = StaticValueInfo


class Model:

Check warning

Code scanning / lintrunner

RUFF/F811

Redefinition of unused `Model` from line 79. See https://docs.astral.sh/ruff/rules/redefined-while-unused
)


class Graph:

Check warning

Code scanning / lintrunner

RUFF/F811

Redefinition of unused `Graph` from line 77. See https://docs.astral.sh/ruff/rules/redefined-while-unused
)


class Function:

Check warning

Code scanning / lintrunner

RUFF/F811

Redefinition of unused `Function` from line 76. See https://docs.astral.sh/ruff/rules/redefined-while-unused
)


class RefAttr:

Check warning

Code scanning / lintrunner

RUFF/F811

Redefinition of unused `RefAttr` from line 82. See https://docs.astral.sh/ruff/rules/redefined-while-unused
ValueProtocol,
)

import dataclasses

Check notice

Code scanning / lintrunner

PYLINT/C0411

standard import "import dataclasses" should be placed before "from onnxscript.ir import serde" (wrong-import-order) See [wrong-import-order](https://pylint.pycqa.org/en/latest/user_guide/messages/convention/wrong-import-order.html). To disable, use ` # pylint: disable=wrong-import-order`
)

import dataclasses
from collections import deque

Check notice

Code scanning / lintrunner

PYLINT/C0411

standard import "from collections import deque" should be placed before "from onnxscript.ir import serde" (wrong-import-order) See [wrong-import-order](https://pylint.pycqa.org/en/latest/user_guide/messages/convention/wrong-import-order.html). To disable, use ` # pylint: disable=wrong-import-order`

import dataclasses
from collections import deque
from typing import List, Tuple, Union

Check notice

Code scanning / lintrunner

PYLINT/C0411

standard import "from typing import List, Tuple, Union" should be placed before "from onnxscript.ir import serde" (wrong-import-order) See [wrong-import-order](https://pylint.pycqa.org/en/latest/user_guide/messages/convention/wrong-import-order.html). To disable, use ` # pylint: disable=wrong-import-order`
from collections import deque
from typing import List, Tuple, Union

import numpy as np

Check notice

Code scanning / lintrunner

PYLINT/C0411

third party import "import numpy as np" should be placed before "from onnxscript.ir import serde" (wrong-import-order) See [wrong-import-order](https://pylint.pycqa.org/en/latest/user_guide/messages/convention/wrong-import-order.html). To disable, use ` # pylint: disable=wrong-import-order`
from typing import List, Tuple, Union

import numpy as np
import onnx

Check notice

Code scanning / lintrunner

PYLINT/C0411

third party import "import onnx" should be placed before "from onnxscript.ir import serde" (wrong-import-order) See [wrong-import-order](https://pylint.pycqa.org/en/latest/user_guide/messages/convention/wrong-import-order.html). To disable, use ` # pylint: disable=wrong-import-order`
@codecov
Copy link

codecov bot commented Apr 1, 2024

Codecov Report

Attention: Patch coverage is 45.51282% with 85 lines in your changes are missing coverage. Please review.

Project coverage is 61.28%. Comparing base (df60e25) to head (9809ec0).

Files Patch % Lines
onnxscript/ir/__init__.py 45.51% 84 Missing and 1 partial ⚠️
Additional details and impacted files
@@                   Coverage Diff                   @@
##           gh/BowenBao/21/base    #1329      +/-   ##
=======================================================
- Coverage                61.82%   61.28%   -0.54%     
=======================================================
  Files                      183      182       -1     
  Lines                    22001    22001              
  Branches                  3646     3646              
=======================================================
- Hits                     13602    13484     -118     
- Misses                    7954     8118     +164     
+ Partials                   445      399      -46     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@justinchuby
Copy link
Collaborator

I would rename the original ir to be legacy_ etc. and store in the separate folder.

@github-actions
Copy link

github-actions bot commented Apr 1, 2024

Test Results

     24 files  ±    0      24 suites  ±0   2h 36m 51s ⏱️ + 2m 49s
 13 009 tests +1 250   9 386 ✅ +960    3 585 💤 +271   20 ❌ + 19   18 🔥 ±0 
412 039 runs  +  273  96 821 ✅  - 357  314 209 💤 ±  0  631 ❌ +630  378 🔥 ±0 

For more details on these failures and errors, see this check.

Results for commit 9809ec0. ± Comparison against base commit df60e25.

♻️ This comment has been updated with latest results.

…tructure rewriter core under onnxscript"

- Moving files to new directories without changing.
- Merging ir/__init__.py with existing ir/__init__.py. The two IRs are expected to be merged in the future.

[ghstack-poisoned]
…onnxscript"

- Moving files to new directories without changing.
- Merging ir/__init__.py with existing ir/__init__.py. The two IRs are expected to be merged in the future.

[ghstack-poisoned]
…rewriter core under onnxscript"

- Moving files to new directories without changing.
- Merging ir/__init__.py with existing ir/__init__.py. The two IRs are expected to be merged in the future.

[ghstack-poisoned]
BowenBao added a commit that referenced this pull request Apr 4, 2024
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]
@BowenBao BowenBao mentioned this pull request Apr 4, 2024
BowenBao added a commit that referenced this pull request Apr 5, 2024
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]
BowenBao added a commit that referenced this pull request Apr 5, 2024
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]
BowenBao added a commit that referenced this pull request Apr 5, 2024
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]>
@BowenBao
Copy link
Contributor Author

BowenBao commented Apr 5, 2024

Close as squashed and merged into main.

@BowenBao BowenBao closed this Apr 5, 2024
@justinchuby justinchuby deleted the gh/BowenBao/21/head branch January 27, 2025 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

3 participants