Jiterates exp2, erfc, erfinv and entr and refactors code_template.h to ATen (#71295)
Summary:
Per title.
cc pietern mrshenli pritamdamania87 zhaojuanmao satgera rohan-varma gqchen aazzolini osalpekar jiayisuse SciPioneer H-Huang
Pull Request resolved: https://github.com/pytorch/pytorch/pull/71295
Reviewed By: ngimel
Differential Revision: D33575885
Pulled By: mruberry
fbshipit-source-id: bc841b46fc0b5458a26a4d4465b18a7a54cd5a5b