tqchen commented on code in PR #14020:
URL: https://github.com/apache/tvm/pull/14020#discussion_r1109865249


##########
src/tir/transforms/split_host_device.cc:
##########
@@ -346,6 +347,13 @@ class HostDeviceSplitter : public StmtMutator {
 };
 
 PrimFunc SplitHostDevice(PrimFunc&& func, IRModule* device_mod) {
+  // skip the check if the function is host function.
+  if (func->GetAttr<Integer>(tvm::tir::attr::kIsHostFunc) == 1) {

Review Comment:
   handle the case when the attribute is not available and defaults to None



-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to