<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/tflite-support/blob/v0.4.4/tensorflow_lite_support/metadata/python/metadata.py#L75-L91) |

Gets the path to the specified file in the data dependencies.

    tflite_support.metadata.get_path_to_datafile(
        path
    )

The path is relative to the file calling the function.

It's a simple replacement of
"tensorflow.python.platform.resource_loader.get_path_to_datafile".

<br />

<br />

<br />

| ## Args ||
|---|---|
| `path` | a string resource path relative to the calling file. |

<br />

<br />

<br />

<br />

| ## Returns ||
|---|---|
| The path to the specified file present in the data attribute of py_test or py_binary. ||

<br />