Closed fzimmermann89 closed 3 weeks ago
currently torch.tensor(1.) * L2SquaredFunctional() will result in mypy type Tensor|Functional. This is caused by wrong type hints in pytorch. I should fix https://github.com/pytorch/pytorch/pull/1353 and get it merged..
:file_folder: Download as zip :mag: View online
Scratch my previous responses. Scale must be float. The type hints in rmul must be complex, but rmul should return not implemented for complex.
pre-commit.ci autofix
nice! I like it like this :)
Please remember to do review
Coverage Report