Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run init_weights under no_grad (#747)
The initializations in `init_weights` can create gradients. This is almost always not intended The alternative would be to add the decorator to `model.init_weights` directly. Then the responsibility is moved to the model writer. I can change that if that's preferred.
- Loading branch information