View Source tflite_beam_interpreter_builder (tflite_beam v0.3.5)
Link to this section Summary
Functions
Build the interpreter with the InterpreterBuilder.
New InterpreterBuilder
Sets the number of CPU threads to use for the interpreter. Returns
true
on success, {error, reason}
on error.Link to this section Functions
-spec build(reference(), reference()) -> ok | {error, binary}.
Build the interpreter with the InterpreterBuilder.
Note: all Interpreters should be built with the InterpreterBuilder, which allocates memory for the Interpreter and does various set up tasks so that the Interpreter can read the provided model.-spec new(#tflite_beam_flatbuffer_model{} | reference(), reference()) ->
{ok, reference()} | {error, binary()}.
-spec set_num_threads(reference(), pos_integer()) -> ok | {error, binary}.
true
on success, {error, reason}
on error.