caten/oonx
ONNX
Looking to compile Caten models directly from ONNX files? The caten/onnx
package has you covered. It supports dynamic shapes and weight loading, allowing for flexible and efficient model integration.
Currently, caten/onnx
supports a limited set of operations. If you encounter any unsupported operations, we warmly welcome your contributions to expand its functionality. Please consider submitting a PR to add them! We'd like to support all opsets which is impossible!
Requirement: cl-onnx requires cl-protobufs, and cl-protobufs may require protocol-compiler to be installed on your system. (Follow the instruction in cl-protobufs first)
[function] from-onnx
Constructs a caten ir from an onnx model file at path
. opset specifies the opset version to use. If not specified, uses the opset version in the file.
Inputs or dynamic shapes for caten
is created as a keyword (so pass the input tensor like (:input . , (rand (list 3 3)))
...