View Source tflite_beam_interpreter_builder (tflite_beam v0.3.5)

Build an interpreter capable of interpreting model.

Link to this section Summary

Functions

Build the interpreter with the 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

Link to this function

build(Builder, Interpreter)

View Source
-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.
Link to this function

new(Tflite_beam_flatbuffer_model, Resolver)

View Source
-spec new(#tflite_beam_flatbuffer_model{} | reference(), reference()) ->
       {ok, reference()} | {error, binary()}.
New InterpreterBuilder
Link to this function

set_num_threads(Builder, NumThreads)

View Source
-spec set_num_threads(reference(), pos_integer()) -> ok | {error, binary}.
Sets the number of CPU threads to use for the interpreter. Returns true on success, {error, reason} on error.