From ca02558d4006678b38cdd1a4df30576c9eefb9c5 Mon Sep 17 00:00:00 2001 From: Ailing Zhang Date: Fri, 12 Apr 2019 21:26:27 -0700 Subject: [PATCH] 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 --- torch/hub.py | 1 + 1 file changed, 1 insertion(+) diff --git a/torch/hub.py b/torch/hub.py index 3ff95de..b744d7c 100644 --- a/torch/hub.py +++ b/torch/hub.py @@ -7,6 +7,7 @@ import shutil import sys import tempfile import torch +import warnings import zipfile if sys.version_info[0] == 2: -- 2.7.4