Closed AbhishekBose closed 2 months ago
I had the same problem. It's due to the version of ndarray
.
Using 0.15
instead of 0.16
works for me.
[dependencies]
ort = { version = "2.0.0-rc.4" }
ndarray = "0.15"
ort::inputs!
returns a Result
, so it should be session.run(ort::inputs![a_ids, a_mask].unwrap())
.
For this code.
I am getting the following error
I was following the example given here in this example