import warnings in torch.hub & fix master CI travis (#19181)
Summary:
fix missing import in #18758
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19181
Differential Revision: D14908198
Pulled By: ailzhang
fbshipit-source-id: 31e0dc4a27521103a1b93f72511ae1b64a36117f