Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/21319 Add assertion to raise Exception when Regularization is applied on FP16. Reviewed By: bddppq Differential Revision: D15528486 fbshipit-source-id: c887c90d1d9ccfdaded3b5fa16816c6f29910e2e