[code-reflection] RFR: Explicit Arena passing to Tensor construction and Session execution [v7]

Adam Sotona asotona at openjdk.org
Wed Mar 5 09:02:08 UTC 2025


On Tue, 4 Mar 2025 13:46:35 GMT, Adam Sotona <asotona at openjdk.org> wrote:

>> Holding `Arena` instances in `OnnxRuntime` and `Session` still cause memory leaks.
>> This patch allows to pass explicit arena for `Tensor` construction, `Session` construction and  each `Session` run.
>> Improved handling of `Session` life cycle allows to cache live `Session` instead of its protobuf model.
>
> Adam Sotona has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Caching live sessions insted of proto models

Thanks for all the comments, let's move forward and continue in the follow-up discussions.

-------------

PR Comment: https://git.openjdk.org/babylon/pull/337#issuecomment-2700274743


More information about the babylon-dev mailing list