Closed HaoboGu closed 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.
OrtValue
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.