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.
Anyone could help?