Modules
A model's artefact isn't where the build should have put it.
A model's codec doesn't fit the artefact the runtime loaded: it expects inputs or outputs the model doesn't have.
A model's runtime could not load its artefact.
A component asked for a model that no process is running.
A call to a model's process didn't return: it stopped while the call was waiting - usually because it failed to load - or it didn't answer within the call's timeout.
Declares machine-learning models on a robot and runs them.
Where a model's artefact lives.
Fetches model artefacts and places them under a priv directory. Used by
Mix.Tasks.Compile.BbInference, which supplies the directories.
What a runtime could find out about a loaded model: its inputs and outputs, in the order the model declares them.
One input or output of a model.
A model declared in a robot's inference section.
A model that has loaded and whose codec fits it, as
BB.Inference.loaded_model/2 returns it.
Behaviour for converting to and from one artefact's conventions.
The controller each model is lowered into.
The option type behind BB.Inference.model_ref/1.
How a quantised tensor's raw integers map to real values:
real = (raw - zero_point) * scale.
Behaviour for loading and executing a model artefact.
A component that names a :doubling model, and runs it when called with
{:double, values}.
A :doubling codec: encodes a list of numbers as input "x", and decodes
output "y" back into a list, offset by :offset.
A runtime that loads nothing and doubles every input it runs.
A codec for a task no test component asks for.
An estimator that names a :doubling model.
Checks each model and lowers it into a controller of the same name
running BB.Inference.ModelController.
Checks that every component option typed with BB.Inference.model_ref/1
names a model this robot declares, and that the model's codec performs the
task the option asks for.
Mix Tasks
Installs BB.Inference into a robot
Places every model artefact declared by a robot in this project under
priv/bb_inference, so it is part of the build and of any release.