tflite_support.metadata.get_path_to_datafile
Stay organized with collections
Save and categorize content based on your preferences.
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.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-05-28 UTC.
[null,null,["Last updated 2026-05-28 UTC."],[],[]]