Open mdehling opened 2 weeks ago
hi,do you resolve this problem? ImportError: cannot import name 'torchscript' from 'torch_mlir' (unknown location) I find torch-mlir/python/torch_mlir dont have torchscript.py like fx.py
No solution from me; I found the same. I think the tests are not up-to-date.
No solution from me; I found the same. I think the tests are not up-to-date.
I changed the compile commands,and can import torchscript here is my compile command: cmake -GNinja -Bbuild \ -DCMAKE_BUILD_TYPE=Debug \ -DLLVM_ENABLE_ASSERTIONS=ON \ -DPython3_FIND_VIRTUALENV=ONLY \ -DLLVM_ENABLE_PROJECTS=mlir \ -DLLVM_EXTERNAL_PROJECTS="torch-mlir" \ -DLLVM_EXTERNAL_TORCH_MLIR_SOURCE_DIR="$PWD" \ -DMLIR_ENABLE_BINDINGS_PYTHON=ON \ -DLLVM_TARGETS_TO_BUILD=host \ -DTORCH_MLIR_ENABLE_LTC=ON \ -DTORCH_MLIR_ENABLE_PYTORCH_EXTENSIONS=ON \ -DTORCH_MLIR_ENABLE_JIT_IR_IMPORTER=ON \ externals/llvm-project/llvm
Thank you, I'll give it a try.
Both with in-tree or out-of-tree builds I run into the following issue of failing tests.
Is this a problem with my build setup?