[code-reflection] RFR: Explicit Arena passing to Tensor construction and Session execution [v2]
Adam Sotona
asotona at openjdk.org
Wed Mar 5 08:20:06 UTC 2025
On Tue, 4 Mar 2025 19:09:58 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> Is there a way to allocate an individually GCed memory segment without a cost of creating the whole auto arena (and similarly an individually freed MS without a new confined arena cost)?
>
>> Is there a way to allocate an individually GCed memory segment without a cost of creating the whole auto arena (and similarly an individually freed MS without a new confined arena cost)?
>
> no
In such case there are only two options:
1. Always create a new auto arena so each tensor, session and session result has its own life cycle.
2. Let user decide about the life cycle by passing arena to each tensor and session construction and session run.
This PR enables #2, with default to #1 for tensors construction.
-------------
PR Review Comment: https://git.openjdk.org/babylon/pull/337#discussion_r1980904454
More information about the babylon-dev
mailing list