View source on GitHub |
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".
Args | |
---|---|
path
|
a string resource path relative to the calling file. |
Returns | |
---|---|
The path to the specified file present in the data attribute of py_test or py_binary. |