'Is my understanding of tensorflow v1 session correct?
I have the following code:
self.sess = tf.Session()
_, self.cost = self.sess.run(
[self._train_op, self.loss],
feed_dict={self.s: batch_memory[:, :self.n_features],
self.q_target: q_target}
)
The order of execution as I understand it is:
self.cost=self.sess.run(
[self.loss],feed_dict={self.s: batch_memory[:, :self.n_features], self.q_target: q_target})
_=self.sess.run([self._train_op],feed_dict={self.loss:self.cost})
Is my understanding correct?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
