[code-reflection] RFR: Updating the ONNX CNNTest
Paul Sandoz
psandoz at openjdk.org
Mon Feb 10 19:26:30 UTC 2025
On Wed, 5 Feb 2025 16:09:36 GMT, Adam Pocock <duke at openjdk.org> wrote:
> - Adds a Python script which trains a small LeNet style CNN on MNIST, exporting it to ONNX format.
> - Updates the CNNTest to match the trained CNN.
> - Added support for loading in the ONNX model, extracting the weights and saving them out in serialized Java records (this adds protobuf-java as a dependency along with the compiled ONNX protobuf).
>
> The compiled ONNX protobuf is Apache 2.0 licensed, and the Python script is adapted from a PyTorch tutorial which is BSD licensed.
Marked as reviewed by psandoz (Lead).
-------------
PR Review: https://git.openjdk.org/babylon/pull/307#pullrequestreview-2606936502
More information about the babylon-dev
mailing list