You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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] <[email protected]>
Co-authored-by: justinchuby <[email protected]>
0 commit comments