Base options for TensorFlow Lite Task Library's Python APIs.

Represents external files used by the Task APIs (e.g. TF Lite FlatBuffer or plain-text labels file). The files can be specified by one of the following two ways:

(1) file contents loaded in file_content. (2) file path in file_name.

If more than one field of these fields is provided, they are used in this precedence order.

file_name Path to the index.
file_content The index file contents as bytes.
num_threads Number of thread, the default value is -1 which means Interpreter will decide what is the most appropriate num_threads.
use_coral If true, inference will be delegated to a connected Coral Edge TPU device.



View source

Checks if this object is equal to the given object.

other The object to be compared with.

True if the objects are equal.

file_content None
file_name None
num_threads -1
use_coral None