#16627 convert weights using torch.as_tensor to avoid warning (#17067)
Summary:
Minor change which fixes #16627
Pull Request resolved: https://github.com/pytorch/pytorch/pull/17067
Differential Revision: D14078726
Pulled By: soumith
fbshipit-source-id: c04a5f1eff44e4a4b04b981f0ae8de6ff018515b