pykeio / ort

Fast ML inference & training for Rust with ONNX Runtime
https://ort.pyke.io/
Apache License 2.0
859 stars 100 forks source link

Equivalent for OrtOwnedTensor in ort 2.0 #247

Closed altunenes closed 3 months ago

altunenes commented 3 months ago

Hello and thank you for the ort! I noticed that OrtOwnedTensor is no longer available in version 2.0. I searched through the migration guide here but couldn't find any information about its equivalent in the new version.

Could you please clarify what the equivalent of OrtOwnedTensor is in ort 2.0, or provide guidance on how to achieve similar functionality with the new API?

Thank you for your help!

decahedron1 commented 3 months ago

The equivalent would be ort::Tensor.

Admittedly, the migration docs are a bit out of date, so I'd suggest also taking a look at the examples (& on 1.16 branch) to see how usage has changed.

altunenes commented 3 months ago

thank you so much!