-
-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: drop inner
Value
s in ValueRef(Mut)
Since the actual underlying data contained in a `Value` is behind an `Arc<ValueInner>` (which is cloned to create refs), not dropping the newly created `Value` would at best not decrease the `ValueInner`'s strong count, and at worse never free `OrtValue`s created via `Tensor::from_raw`.
- Loading branch information
1 parent
5f6411a
commit c1c736b
Showing
1 changed file
with
6 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters