【问题标题】:How to pass in the correct variables when using tensorflow.sess.run()?使用 tensorflow.sess.run() 时如何传入正确的变量?
【发布时间】:2020-05-26 00:46:25
【问题描述】:

我现在正在使用 tensorflow 构建几个复杂的神经网络。它们共享一些变量,神经网络的输出是另一个神经网络的输入。有时我只是对应该将哪些变量传递给 tf.sess.run() 感到困惑?因为结构不太好找。

【问题讨论】:

    标签: tensorflow neural-network placeholder


    【解决方案1】:

    假设您有两个模型(模型 1 和模型 2),模型 1 的输出是模型 2 的输入,然后模型 2 将进入 sess.run()。 在 sess.run() 中,该模型将为您提供最后的预测。

    【讨论】:

      猜你喜欢
      • 2014-10-05
      • 2020-05-06
      • 1970-01-01
      • 2013-12-25
      • 2021-10-15
      • 2021-06-01
      • 2019-12-16
      • 2016-11-13
      • 2012-08-21
      相关资源
      最近更新 更多