Skip to content

Ensure ONNX support #1015

Open
Open
@johnnv1

Description

@johnnv1

I would like to request the addition of a feature to support exporting models to the ONNX (Open Neural Network Exchange) format within the library. As ONNX is becoming a widely adopted format for model interoperability, having support for exporting models to ONNX would significantly enhance the flexibility and usability of the library in various deployment environments.

Why This Feature is Important

  1. Interoperability: ONNX allows models to be transferred across different frameworks such as PyTorch, TensorFlow, and Scikit-learn. By adding ONNX export support, users will be able to seamlessly transition models between these frameworks and utilize them in diverse production environments.

  2. Platform Support: ONNX is supported on various platforms, including cloud services, edge devices, and hardware accelerators. Exporting models in ONNX format would enable deployment on a wider range of devices and systems.

  3. Ecosystem Integration: Many tools and services are built to work with ONNX models, such as the ONNX Runtime, which is optimized for speed and efficiency. Having the ability to export models to ONNX would allow users to integrate with these powerful tools out of the box.

Proposed Solution

  • Implement a function (e.g., model.to_onnx() or similar) to export the trained models into ONNX format. Or an exporter module.
  • Ensure compatibility with common ONNX features, such as support for model optimization, quantization, and other transformations.
  • Provide clear documentation and examples on how to use the new feature effectively.
  • Ensure that the ONNX export functionality is integrated with the library's test suite, with tests that validate the correctness and performance of the exported ONNX models across different environments.

If this feature aligns with the project's goals, I am open to contributing a bit of time to help write the feature and assist with the implementation.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions