Specification of target device used to optimize the model.
tf.lite.TargetSpec(
supported_ops=None,
supported_types=None,
experimental_select_user_tf_ops=None,
experimental_supported_backends=None
)
Attributes |
supported_ops
|
Experimental flag, subject to change. Set of tf.lite.OpsSet
options, where each option represents a set of operators supported by the
target device. (default {tf.lite.OpsSet.TFLITE_BUILTINS}))
|
supported_types
|
Set of tf.dtypes.DType data types supported on the target
device. If initialized, optimization might be driven by the smallest type
in this set. (default set())
|
experimental_select_user_tf_ops
|
Experimental flag, subject to change. Set
of user's TensorFlow operators' names that are required in the TensorFlow
Lite runtime. These ops will be exported as select TensorFlow ops in the
model (in conjunction with the tf.lite.OpsSet.SELECT_TF_OPS flag). This is
an advanced feature that should only be used if the client is using TF ops
that may not be linked in by default with the TF ops that are provided
when using the SELECT_TF_OPS path. The client is responsible for linking
these ops into the target runtime.
|
experimental_supported_backends
|
Experimental flag, subject to change.
Set containing names of supported backends. Currently only "GPU" is
supported, more options will be available later.
|