You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "vinx13 (via GitHub)" <gi...@apache.org> on 2024/09/23 19:54:26 UTC

[PR] [Runtime] Add property Module.is_device_module [tvm]

vinx13 opened a new pull request, #17407:
URL: https://github.com/apache/tvm/pull/17407

   cc @tqchen 


-- 
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: commits-unsubscribe@tvm.apache.org

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


Re: [PR] [Runtime] Add property Module.is_device_module [tvm]

Posted by "vinx13 (via GitHub)" <gi...@apache.org>.
vinx13 merged PR #17407:
URL: https://github.com/apache/tvm/pull/17407


-- 
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: commits-unsubscribe@tvm.apache.org

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


Re: [PR] [Runtime] Add property Module.is_device_module [tvm]

Posted by "tqchen (via GitHub)" <gi...@apache.org>.
tqchen commented on code in PR #17407:
URL: https://github.com/apache/tvm/pull/17407#discussion_r1772033148


##########
python/tvm/runtime/module.py:
##########
@@ -274,6 +274,10 @@ def is_runnable(self):
         """
         return (self.get_property_mask() & ModulePropertyMask.RUNNABLE) != 0
 
+    @property
+    def is_device_module(self):
+        return self.type_key in ["cuda", "opencl", "metal", "hip", "vulcan", "webgpu"]

Review Comment:
   vulkan?



-- 
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: commits-unsubscribe@tvm.apache.org

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