Check failed: allow_alloc == false: Cannot find the Realization point of tensor Tensor(shape=[1000, 512], op.name=weight)
Error during compile function
I got the same error. In my case I got a long compute that involves several te.compute in it. The compute is defined for a new relay op and has an AutoTVM schedule as well. I suspect some of them should’ve been ProducerRealizeNodes yet they’re not, according to src/te/schedule/schedule_postproc_to_primfunc.cc. However I have no idea how to debug this.
Btw this issue seems to be related although it’s for hybrid script.
It is likely because of some operators were not correctly scheduled. It would be great if you can create a minimal reproducible script. You can use Relay Python API to creates a minimal model (like this example) that would help debugging
Thanks for the reply. I get over this bug for now and it seems to be caused by having dangling input tensors, e.g. not following conventions like this to pack input tensors when necessary.