llvm / torch-mlir

The Torch-MLIR project aims to provide first class support from the PyTorch ecosystem to the MLIR ecosystem.
Other
1.23k stars 450 forks source link

【Deno error】ImportError: cannot import name 'torchscript' from 'torch_mlir' (unknown location) #3059

Open Knight-9 opened 3 months ago

Knight-9 commented 3 months ago

When I run python projects/pt1/examples/torchscript_resnet18.py , I got an error that: Traceback (most recent call last): File "/root/xxx/torch_mlir/torch-mlir/projects/pt1/examples/torchscript_resnet18.py", line 15, in from torch_mlir import torchscript ImportError: cannot import name 'torchscript' from 'torch_mlir' (unknown location)

What can I do about it? thanks!

stellaraccident commented 3 months ago

idk. We should delete those pt1 examples. Pretty much everything in pt1 or related to torchscript is barely supported by current contributors.

Knight-9 commented 3 months ago

idk. We should delete those pt1 examples. Pretty much everything in pt1 or related to torchscript is barely supported by current contributors.

Thanks! I found out , the snapshots source code different from the current version of the code