Hi
I just started with tvm rust and got the following error message when I tried to build the resnet example on macOS:
Compiling tvm-common v0.1.0 (/Users/usr/tvm/rust/common)
error[E0308] : mismatched types
–> common/src/array.rs:100:26
|
100 | device_type: ctx.device_type as i32,
| ^^^^^^^^^^^^^^^^^^^^^^ expected u32, found i32
error[E0308] : mismatched types
–> common/src/packed_func.rs:87:25
|
87 | DLDataTypeCode_kDLInt => Int($value.v_int64),
| ^^^^^^^^^^^^^^^^^^^^^ expected i32, found u32
…
143 | / TVMPODValue! {
144 | | /// A borrowed TVMPODValue. Can be constructed using
into()
but the preferred way145 | | /// to obtain a
TVMArgValue
is automatically viacall_packed!
.146 | | TVMArgValue<'a> {
… |
159 | | }
160 | | }
| |_- in this macro invocation
|
= note : expected type
**i32**
found type
**u32**
error[E0308] : mismatched types
–> common/src/packed_func.rs:88:25
Any idea what could cause this error?