Open shibizhao opened 1 year ago
Hi @shibizhao, use_tracing
just decides whether to use torch.jit.script
or torch.jit.trace
to convert the torch.nn.Module
being passed into TorchScript. The error you're getting is a TorchScript error caused by torch.jit.script
being unable to verify that the types in your program are correct. In other words, it does not seem to be a torch-mlir error.
Hi,
I am a beginner of torch-mlir. I can execute the
examples/torchscript_stablehlo_backend_tinybert.py
successfully and get the MLIR output. I found that the constant matrices are with specific encoded values in the MLIR file. When I set theuse_tracing=False
, there is some errors in my output. But ResNet18 can generate without tracing.I am unfamiliar with the usage of
use_tracing
. So I would like to ask you for help.Thank you!