zhanghaohit commented on a change in pull request #6125:
URL: https://github.com/apache/incubator-tvm/pull/6125#discussion_r478050263



##########
File path: python/tvm/relay/op/_tensor.py
##########
@@ -87,6 +87,10 @@
 register_broadcast_schedule("fast_exp")
 register_broadcast_schedule("fast_tanh")
 register_broadcast_schedule("fast_erf")
+# a fake on_device schedule.
+# this will not be used in actual computation
+# as on_device will be removed during DeviceAnnotation pass
+register_injective_schedule("on_device")

Review comment:
       It will raise 
   `
   AssertionError: on_device doesn't have FTVMStrategy registered
   `
   during build_module.cc::Optimize before we do the `RunDeviceAnnotationPass`.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to