View source on GitHub |
Specification of target device.
tf.lite.TargetSpec( supported_ops=None, supported_types=None )
Details about target device. Converter optimizes the generated model for specific device.
Attributes | |
---|---|
supported_ops | Experimental flag, subject to change. Set of OpsSet options supported by the device. (default set([OpsSet.TFLITE_BUILTINS])) |
supported_types | List of types for constant values on the target device. Frequently, an optimization choice is driven by the most compact (i.e. smallest) type in this list (default [tf.float32]) |
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/python/tf/lite/TargetSpec