[numpy] `torch.log{2,10}` : promote integer inputs to float (#46810)
Summary:
References https://github.com/pytorch/pytorch/issues/42515
cc: mruberry
Pull Request resolved: https://github.com/pytorch/pytorch/pull/46810
Reviewed By: izdeby
Differential Revision: D24536187
Pulled By: mruberry
fbshipit-source-id: b7dd7678d4e996f3dea0245c65055654e02be459