schell opened a new issue #8700:
URL: https://github.com/apache/tvm/issues/8700


   When loading metal models on my M1 Macbook Pro I see this line print: 
   ```
   [14:29:11] ~/tvm/src/runtime/metal/metal_device_api.mm:165: Intializing 
Metal device 0, name=Apple M1
   ```
   and then quickly thereafter I get this failed check/error:
   ```
   Check failed: (dev.device_id >= 0 && static_cast<size_t>(dev.device_id) < 
devices.size()) is false: Invalid Metal device_id=0
   ```
   
   Looking at the code in tvm/src/runtime/metal/metal_device_api.mm it seems 
that this check should absolutely not fail if I have a device at all, which I 
know I do based on the line printed just before the check.
   
   


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