Spec-Zone.ru › TensorFlow 1.15

tf.contrib.checkpoint.object_metadata

Получает информацию об объектах в контрольной точке.

tf.contrib.checkpoint.object_metadata(
    save_path
)

Пример использования:

object_graph = tf.contrib.checkpoint.object_metadata(
    tf.train.latest_checkpoint(checkpoint_directory))
ckpt_variable_names = set()
for node in object_graph.nodes:
  for attribute in node.attributes:
    ckpt_variable_names.add(attribute.full_name)
Аргументы
save_path Путь к контрольной точке, возвращаемый функцией save или tf.train.latest_checkpoint.
Возвращаемое значение
Разбор tf.contrib.checkpoint.TrackableObjectGraph протокольного буфера.
Исключения
ValueError Если граф объектов не был найден в контрольной точке.

© 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/contrib/checkpoint/object_metadata

Spec-Zone.ru

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