The weights are reassigned, which shouldn’t be tracked by Autograd as a differentiable operation.


Yes, these lines of code test, if the manipulation of the parameters was successful or if we get a shape mismatch error.