[code-reflection] Withdrawn: 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`.

This pull request has been closed without being integrated.

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

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


More information about the babylon-dev mailing list