Tvm\src\node\reflection.cc:109: AttributeError: Op object has no attributed span

I wanted to try out the official PyTorch example from tvm website: Compile PyTorch Models — tvm 0.16.dev0 documentation

But when I do, i get this error: [14:39:41] C:\Users\saren\OneDrive\Documents\ETF\UIUC_assignment\tvm-quantization\tvm\src\node\reflection.cc:109: AttributeError: Op object has no attributed span

The problem arises when I try to convert PyTorch graph to Relay graph. That is this part of the code: input_name = “input0” shape_list = [(input_name, img.shape)] mod, params = relay.frontend.from_pytorch(scripted_model, shape_list)

I have Windows 11 operating system, and i built LLVM using MSVC from source and used CMake to build TVM with LLVM enabled.

I am using TVM version 0.15.0 and PyTorch version 1.7.0.

I don’t know how to fix it, if someone can help please do.