Hi all, I am curious how can I evaluate an expression, but don’t include it in the computational graph?
For example, in this code 11, I need the network to produce Q values before I feed them back for training.
However, these evaluations seem to be affecting the gradients. Right now I am solving the problem by detaching Q_targets, but this solution feels messy.
What’s the assumed way of controlling the dynamic graph?