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

Adam Sotona asotona at openjdk.org
Tue Mar 4 13:46:35 UTC 2025


> 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

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

Changes:
  - all: https://git.openjdk.org/babylon/pull/337/files
  - new: https://git.openjdk.org/babylon/pull/337/files/b974d53c..b97afd8d

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=babylon&pr=337&range=06
 - incr: https://webrevs.openjdk.org/?repo=babylon&pr=337&range=05-06

  Stats: 16 lines in 1 file changed: 2 ins; 6 del; 8 mod
  Patch: https://git.openjdk.org/babylon/pull/337.diff
  Fetch: git fetch https://git.openjdk.org/babylon.git pull/337/head:pull/337

PR: https://git.openjdk.org/babylon/pull/337


More information about the babylon-dev mailing list