This is where the problem lies. You need to give the target context by 
relay.build with the target argument.
But there is no requirement to do this in TVM for flexibility. In some 
tutorials, compute graph is not build by using op strategy but directly using 
the wrap function(cfunc&sfunc).

For example, one can build an nms graph by cfunc and sfunc without target 
context. And then give the target context in building stage.
```
out = topi.vision.nms.non_max_suppression(data, valid_count, 
iou_threshold=iou_threshold,
                                force_suppress=force_suppress, top_k=top_k)
s = topi.generic.schedule_nms(out)
print(tvm.lower(s,[data,valid_count,out]))
f = tvm.build(s, [data, valid_count, out],  "llvm")
```





---
[Visit 
Topic](https://discuss.tvm.ai/t/schedule-not-registered-for-mytarget/6675/4) to 
respond.

You are receiving this because you enabled mailing list mode.

To unsubscribe from these emails, [click 
here](https://discuss.tvm.ai/email/unsubscribe/7e7429c3e491205679c3564c7e0bed83bc8aa4340ad40e09b0efc417cc51bc0f).

Reply via email to