pytorch
e238752e - Simplify magic method definition code. (#88017)

Commit
3 years ago
Simplify magic method definition code. (#88017) It turns out sym_float (and the hypothetical sym_int) can be defined in the same way as conventional magic methods. Do so. Signed-off-by: Edward Z. Yang <ezyang@fb.com> Pull Request resolved: https://github.com/pytorch/pytorch/pull/88017 Approved by: https://github.com/albanD
Author
Committer
Parents
Loading