Skip to content

Commit 6bf7041

Browse files
committed
fix init
Signed-off-by: Justin Chu <[email protected]>
1 parent 82341b6 commit 6bf7041

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/onnx_ir/__init__.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -149,17 +149,15 @@
149149
)
150150
from onnx_ir.serde import TensorProtoTensor, from_onnx_text, from_proto, to_proto
151151

152-
__version__ = "0.1.0"
153152
DEBUG = False
154153

155154

156155
def __set_module() -> None:
157156
"""Set the module of all functions in this module to this public module."""
158157
global_dict = globals()
159158
for name in __all__:
160-
if hasattr(global_dict[name], "__module__"):
161-
# Set the module of the function to this module
162-
global_dict[name].__module__ = __name__
159+
global_dict[name].__module__ = __name__
163160

164161

165162
__set_module()
163+
__version__ = "0.1.0"

0 commit comments

Comments
 (0)