Commit e211825
Expose DeduplicateInitializersPass in common passes module (#99)
This PR exposes the `DeduplicateInitializersPass` in the
`onnx_ir.passes.common` module by adding it to the `__all__` list and
importing it in the module's `__init__.py`.
## Changes Made
- Added `"DeduplicateInitializersPass"` to the `__all__` list in
alphabetical order
- Added import statement: `from
onnx_ir.passes.common.initializer_deduplication import
(DeduplicateInitializersPass,)`
## Before
```python
# This would fail with ImportError
from onnx_ir.passes.common import DeduplicateInitializersPass
# Users had to import directly from the submodule
from onnx_ir.passes.common.initializer_deduplication import DeduplicateInitializersPass
```
## After
```python
# Now works as expected
from onnx_ir.passes.common import DeduplicateInitializersPass
# Pass can be used immediately
pass_instance = DeduplicateInitializersPass()
result = pass_instance(model)
```
The change follows the existing pattern used by other passes in the
module and maintains alphabetical ordering in both the `__all__` list
and import statements.
Fixes #98.
<!-- START COPILOT CODING AGENT TIPS -->
---
💬 Share your feedback on Copilot coding agent for the chance to win a
$200 gift card! Click
[here](https://survey.alchemer.com/s3/8343779/Copilot-Coding-agent) to
start the survey.
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: justinchuby <11205048+justinchuby@users.noreply.github.com>1 parent 62e750c commit e211825
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
32 | 36 | | |
33 | 37 | | |
34 | 38 | | |
| |||
0 commit comments