mbs-octoml commented on code in PR #12107:
URL: https://github.com/apache/tvm/pull/12107#discussion_r922406486
##########
python/tvm/target/virtual_device.py:
##########
@@ -27,7 +27,9 @@ class VirtualDevice(Object):
"""A compile time representation for where data is to be stored at runtime,
and how to compile code to compute it."""
- def __init__(self, device, target=None, memory_scope="") -> None:
+ def __init__(self, device=None, target=None, memory_scope="") -> None:
+ if device is None:
+ device = tvm.device(-1, -1)
Review Comment:
Added a comment. Yes, it just means 'nothing known about the device type or
id, it may be filled in during device planning based on how the contraints work
out'.
--
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]