iree-org / iree-torch

Torch Frontend for IREE
Apache License 2.0
25 stars 11 forks source link

error: bytecode version - when I try the bert example. #84

Closed trholding closed 1 year ago

trholding commented 1 year ago

I get o bytecode version error (last lines pasted here) when I tried bert.py, I used some instructions from here: https://openxla.github.io/iree/getting-started/pytorch/

Do you have any hints to solve the bytecode problem?


Diagnostics:
<stdin>:0:0: error: bytecode version 1 is newer than the current version 0

Invoked with:
 iree-compile 
/usr/lib/python3.10/site-packages/iree/compiler/tools/../_mlir_libs/iree-compile - 
--iree-input-type=tm_tensor --iree-vm-bytecode-module-output-format=flatbuffer-binary 
--iree-hal-target-backends=llvm-cpu 
--iree-llvm-embedded-linker-path=/usr/lib/python3.10/site-packages/iree/compiler/tools/../_
mlir_libs/iree-lld --mlir-print-debuginfo --mlir-print-op-on-diagnostic=false

Need more information? Set IREE_SAVE_TEMPS=/some/dir in your environment to save all 
artifacts and reproducers.```
trholding commented 1 year ago

Issue has been fixed:

https://github.com/openxla/iree/issues/12762#issuecomment-1509372134