Spec-Zone.ru › TensorFlow 2.9

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 Если путь не найден или ресурс не может быть открыт.

© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.9/api_docs/python/tf/compat/v1/resource_loader/get_path_to_datafile

Spec-Zone.ru

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