BB.Inference.OpenCV.TinyOnnx (bb_inference_opencv v0.1.0)

Copy Markdown View Source

Writes a two-node ONNX model, encoded by hand, so the tests need neither a downloaded artefact nor a Python toolchain.

The graph takes one float input x of shape {1, 3} and gives two outputs, in this order: doubled (x + x) and squared (x * x).

Only the handful of protobuf fields ONNX needs here are encoded. Field numbers are from onnx.proto.

Summary

Functions

Write the model to path.

Functions

write!(path)

@spec write!(Path.t()) :: Path.t()

Write the model to path.