View source on GitHub |
Base options for TensorFlow Lite Task Library's Python APIs.
tflite_support.task.core.BaseOptions(
file_name: Optional[str] = None,
file_content: Optional[bytes] = None,
num_threads: Optional[int] = -1,
use_coral: Optional[bool] = None
)
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.