Skip to content

Commit

Permalink
Fix torch-mlir-import-onnx entry point (#3965)
Browse files Browse the repository at this point in the history
Due to the wrong entry point, calling `torch-mlir-import-onnx` currently
fails with
```
$ torch-mlir-import-onnx
Traceback (most recent call last):
  File "venv-torch/bin/torch-mlir-import-onnx", line 5, in <module>
    from torch_mlir.tools.import_onnx import _cli_main
ImportError: cannot import name '_cli_main' from 'torch_mlir.tools.import_onnx' (unknown location)
```
  • Loading branch information
marbre authored Jan 17, 2025
1 parent 8fa3bd9 commit b17cf23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def build_extension(self, ext):
},
entry_points={
"console_scripts": [
"torch-mlir-import-onnx = torch_mlir.tools.import_onnx:_cli_main",
"torch-mlir-import-onnx = torch_mlir.tools.import_onnx.__main__:_cli_main",
"torch-mlir-opt = torch_mlir.tools.opt.__main__:main",
],
},
Expand Down

0 comments on commit b17cf23

Please sign in to comment.