View Source ExVision.Model.Definition behaviour (Ex Vision v0.4.0)

A module describing the behaviour that MUST be implemented by all ExVision models.

Summary

Callbacks

Link to this callback

batched_run(atom, input_t)

View Source
@callback batched_run(atom(), ExVision.Model.input_t()) :: any()
@callback child_spec(keyword()) :: Supervisor.child_spec()
@callback load(keyword()) :: {:ok, ExVision.Model.t()} | {:error, reason :: atom()}
@callback run(ExVision.Model.t(), ExVision.Model.input_t()) :: any()
@callback start_link(keyword()) :: GenServer.on_start()