richard:

You should use detach() when attempting to remove a tensor from a computation graph


Does this mean that it also removes the flow of gradients down it’s path? i.e. removes an edge from the graph and thus a path for backprop to flow through?