Open ekalda opened 5 months ago
@ekalda Hello! I used the latest code and when I tried relay.build(mod, target=target, params=params), I encountered the following error, TVMError: Can't fetch the lanes of a scalable vector at a compile time. Please tell me how to solve it
Hi @MrJungle1, yes that sounds like a problem related to the SVE implementation. Can you tell me more about what is in the mod
and what is the target
you are compiling for? This error is triggered when we try to do a.lanes()
for a an object a
which dtype is a scalable vector (we should do a.vscale_factor()
in this case instead). This error can be triggered from many places in the codebase, so the stack trace that accompanies the error would help to diagnose it.
@ekalda Hello, thank you for your reply. My model is an onnx model converted from HIFIGAN. target = "llvm -mtriple=arm64-linux-android -mattr=+neon"
Could you provide a stack trace?
This issue is to track progress for SVE upstreaming
vscale
builtin and its support in LLVM codegen - https://github.com/apache/tvm/pull/16484Ramp
andBroadcast
nodes and associated changes inruntime::DataType
- https://github.com/apache/tvm/pull/16523LoopVectorizer
- https://github.com/apache/tvm/pull/16782vscale
dependent expression intir::split
- https://github.com/apache/tvm/pull/16862vscale
dependent expression inte::split
- https://github.com/apache/tvm/pull/16862LoopVectorizer
and LLVM codegen