Cast nn.Upsample.scale_factor to a float (#17732)
Summary:
Fixes #17106
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17732
Differential Revision: D14388192
Pulled By: driazati
fbshipit-source-id: d9c9e87a7c6db63c1de3ddebbb8dcf619f0dc34d