Spec-Zone.ru › TensorFlow 2.4

tf.compat.v1.resource_loader.get_path_to_datafile

Получить путь к указанному файлу в зависимостях данных.

tf.compat.v1.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/r2.3/api_docs/python/tf/compat/v1/resource_loader/get_path_to_datafile

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API