Closed joelchen closed 2 years ago
@joelchen thanks for opening this issue. At the moment, we have only added From<T>
impls for PredictInputValue
for f32
, f64
, &str
, and String
. We should add impls for more types, including i32
, so I will change the title of this issue appropriately. To fix your example in the meantime, change the type of height
to f32
, and convert any i32
values to f32
before constructing an Input
.
With #47 merged this issue should now be resolved.
I am getting E0277 following the advanced Rust example (https://github.com/tangramdotdev/tangram/blob/main/languages/rust/examples/advanced/main.rs):
There is also mismatched types error at predict_one.