【问题标题】:Want to know the list of the inputs and outputs along with the shape of a tensorflow model checkpoint [duplicate]想知道输入和输出的列表以及张量流模型检查点的形状[重复]
【发布时间】:2019-08-28 20:18:59
【问题描述】:

我有模型检查点文件以及.index.meta 文件,但我想知道模型的输入和输出以及它们各自的尺寸和形状。

【问题讨论】:

    标签: tensorflow machine-learning


    【解决方案1】:

    here 所述,检查点保存没有严格定义的输入和输出(与冻结图相反)。不过,您可以使用 TensorBoard 检查您的图表并识别输入和输出张量:

    import tensorflow as tf
    from tensorflow.summary import FileWriter
    
    sess = tf.Session()
    tf.train.import_meta_graph("your-meta-graph-file.meta")
    FileWriter("__tb", sess.graph)
    

    并使用tensorboard --logdir __tb 进行检查。

    【讨论】:

      猜你喜欢
      • 2020-02-05
      • 1970-01-01
      • 1970-01-01
      • 2018-06-16
      • 2019-11-30
      • 2021-10-22
      • 2018-10-30
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多