Skip to content

Commit

Permalink
Update docs/tutorials/csharp/basic_csharp.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yuslepukhin authored Sep 28, 2023
1 parent f5c60eb commit d153b29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/tutorials/csharp/basic_csharp.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ The same applies to string `OrtValue` tensors returned as outputs. Character bas

## Data life-cycle

Except some of the above deprecated API classes, nearly all of C# API classes are `IDisposable`.
Except for some of the above deprecated API classes, nearly all of C# API classes are `IDisposable`.
Meaning they need to be disposed after use, otherwise you will get memory leaks. Because OrtValues are used to hold tensor data, the sizes of the leaks can be huge. They are likely to accumulate with each `Run` call, as each inference call requires input OrtValues and returns output OrtValues.
Do not hold your breath for finalizers which are not guaranteed to ever run, and if they do, they do it when it is too late.

Expand Down

0 comments on commit d153b29

Please sign in to comment.