#16627 convert weights using torch.as_tensor to avoid warning (#17067)
authorptrblck <piotr.bialecki@hotmail.de>
Thu, 14 Feb 2019 04:42:45 +0000 (20:42 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Thu, 14 Feb 2019 04:54:29 +0000 (20:54 -0800)
commit8abfd28f588ccea9fcc11787acff2260b5ea9e55
tree4ed37b28da0053a66afafeb6ada37041f0907824
parentb33f4cff6b7c62ccfda4202a89dd2c134c3cddcf
#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
torch/utils/data/sampler.py