torch-mlir
torch-mlir copied to clipboard
TOSA lowering is very slow
If you run https://github.com/llvm/torch-mlir/blob/main/examples/torchscript_resnet18_all_output_types.py then the TOSA lowering seems to take much longer than the other lowerings.
CC @sjarus
Very interesting. Thanks for raising this - I forgot to acknowledge seeing this issue posted earlier today.
So it's a vision model. Maybe this is hitting https://github.com/google/iree/issues/8855 too.
Quickly updating here - I coordinated internally with @GeorgeARM and am helping him work out the refactoring proposed in https://github.com/google/iree/issues/8855 , and in the process increase the number of people internally who are familiar with the LLVM contribution process. Meanwhile I'll test it out with Torch-MLIR separately to see if it indeed addresses this.