Lunderberg commented on code in PR #11065:
URL: https://github.com/apache/tvm/pull/11065#discussion_r855496310
##########
python/tvm/contrib/hexagon/session.py:
##########
@@ -95,6 +94,25 @@ def __enter__(self):
def __exit__(self, exc_type, exc_value, exc_traceback):
pass
+ @property
+ def device(self):
+ """Session device."""
+
+ if hasattr(self, "_device") and self._device is not None:
+ return self._device
+
+ if not hasattr(self, "_requires_cpu_device"):
Review Comment:
Current CI results have some failures for `test_2d_physical_buffers` and
`test_cache_read_write`, which look to be caused by this lack of a default.
https://ci.tlcpack.ai/blue/organizations/jenkins/tvm/detail/PR-11065/8/tests
--
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]