# tf.lite.TargetSpec

<br />

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 1 version](https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/lite/TargetSpec) | [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v2.0.0/tensorflow/lite/python/lite.py#L134-L155) |

Specification of target device.

#### View aliases


**Compat aliases for migration**

See
[Migration guide](https://www.tensorflow.org/guide/migrate) for
more details.

[`tf.compat.v1.lite.TargetSpec`](https://www.tensorflow.org/api_docs/python/tf/lite/TargetSpec)

<br />

    tf.lite.TargetSpec(
        supported_ops=None, supported_types=None
    )

Details about target device. Converter optimizes the generated model for
specific device.

<br />

<br />

<br />

| ## 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. Supported values are types exported by lite.constants. Frequently, an optimization choice is driven by the most compact (i.e. smallest) type in this list (default \[constants.FLOAT\]) |

<br />