# `BB.Inference.OpenCV.TinyOnnx`
[🔗](https://github.com/beam-bots/bb_inference_opencv/blob/main/test/support/tiny_onnx.ex#L5)

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`.

# `write!`

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

Write the model to `path`.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
