tkonolige commented on a change in pull request #8885:
URL: https://github.com/apache/tvm/pull/8885#discussion_r703658020



##########
File path: python/tvm/runtime/profiler_vm.py
##########
@@ -35,10 +37,17 @@ class VirtualMachineProfiler(vm.VirtualMachine):
 
     def __init__(self, exe, device, memory_cfg=None):
         super(VirtualMachineProfiler, self).__init__(exe, device, memory_cfg)
-        self.module = _ffi_api._VirtualMachineDebug(exe.module)
+
+        # Make sure the constructor of the VM module is on the proper device
+        if device.device_type >= rpc_base.RPC_SESS_MASK:

Review comment:
       done




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