tf.resource_loader.get_path_to_datafile
Получить путь к указанному файлу в зависимостях данных.
tf.resource_loader.get_path_to_datafile(
path
)
Путь является относительным по отношению к tensorflow/
| Аргументы | |
|---|---|
path | строковый путь к ресурсу, относительный к tensorflow/ |
| Возвращаемые значения | |
|---|---|
| Путь к указанному файлу, присутствующему в атрибуте data у py_test или py_binary. |
| Исключения | |
|---|---|
IOError | Если путь не найден или к ресурсу невозможно получить доступ. |
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/python/tf/resource_loader/get_path_to_datafile