backwark, updates the weights

The backward pass does not update the weights, the optimizer.step() does.

forward, may change the weights

Unless your code explicitly does so, then no the forward won’t change the weights.