nhynes commented on a change in pull request #6539:
URL: https://github.com/apache/incubator-tvm/pull/6539#discussion_r493790146



##########
File path: rust/tvm/examples/resnet/src/main.rs
##########
@@ -76,7 +76,7 @@ fn main() {
         graph.into(),
         (&lib).into(),
         (&ctx.device_type).into(),
-        (&ctx.device_id).into(),
+        (&(ctx.device_id as i32)).into(),

Review comment:
       the real questions are
   a) why this requires a reference
   b) why `From<T> for DeviceId` isn't `impl`d for more types
   
   anyway, thanks for catching this!




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to