HaoboGu / ors

onnxruntime bindings for rust
Apache License 2.0
10 stars 2 forks source link

Make tensor own its data #8

Closed HaoboGu closed 2 years ago

HaoboGu commented 2 years ago

In the first version, the tensor doesn't own its data -- it owns the pointer of OrtValue only. So if the data is released, the tensor can also be used and which causes unexpected error. This PR fixes this.