[code-reflection] RFR: Use memory segment
Adam Sotona
asotona at openjdk.org
Wed Feb 26 11:58:22 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`.
I've already addressed some of the BB removals in https://github.com/openjdk/babylon/pull/326
-------------
PR Comment: https://git.openjdk.org/babylon/pull/328#issuecomment-2684749558
More information about the babylon-dev
mailing list