eval() and run() in tensorflow

后端 未结 2 1958
轮回少年
轮回少年 2021-01-01 20:22

I\'m referring to Deep MNIST for Experts tutorial given by the tensorflow. I have a problem in Train and Evaluate part of that tutorial. There they have giv

2条回答
  •  猫巷女王i
    2021-01-01 21:16

    The difference is in Operations vs. Tensors. Operations use run() and Tensors use eval().

    There seems to be a reference to this question in TensorFlow FAQ: https://www.tensorflow.org/programmers_guide/faq#running_a_tensorflow_computation

    The section addresses the following question: What is the difference between Session.run() and Tensor.eval()?

提交回复
热议问题