[code-reflection] RFR: Use memory segment
Paul Sandoz
psandoz at openjdk.org
Wed Feb 26 17:06:11 UTC 2025
On Tue, 25 Feb 2025 19:09:36 GMT, Paul Sandoz <psandoz at openjdk.org> wrote:
> Replace many uses of `ByteBuffer` use with idiomatic `MemorySegment` use. This also tends to make clearer the life cycle of segments. Generally in any ONNX APIs we design i think we should avoid exposing `*Buffer`. The "escape hatch" for accessing the data of a `Tensor` should be `MemorySegment`.
Superseded by #326
-------------
PR Comment: https://git.openjdk.org/babylon/pull/328#issuecomment-2685671732
More information about the babylon-dev
mailing list