# tf.lite.experimental.load_delegate

<br />

|---|---|
| [![](https://www.tensorflow.org/images/tf_logo_32px.png) TensorFlow 2 version](https://www.tensorflow.org/api_docs/python/tf/lite/experimental/load_delegate) | [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tensorflow/blob/v1.15.0/tensorflow/lite/python/interpreter.py#L140-L169) |

Returns loaded Delegate object.

#### View aliases


**Compat aliases for migration**

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

[`tf.compat.v1.lite.experimental.load_delegate`](https://www.tensorflow.org/api_docs/python/tf/lite/experimental/load_delegate), \`tf.compat.v2.lite.experimental.load_delegate\`

<br />

    tf.lite.experimental.load_delegate(
        library, options=None
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `library` | Name of shared library containing the [TfLiteDelegate](https://www.tensorflow.org/lite/performance/delegates). |
| `options` | Dictionary of options that are required to load the delegate. All keys and values in the dictionary should be convertible to str. Consult the documentation of the specific delegate for required and legal options. (default None) |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Delegate object. ||

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `ValueError` | Delegate failed to load. |
| `RuntimeError` | If delegate loading is used on unsupported platform. |

<br />