summaryrefslogtreecommitdiff
path: root/test/test_jit_fuser.py
diff options
context:
space:
mode:
authorEdward Yang <ezyang@fb.com>2019-03-30 08:58:10 -0700
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>2019-03-30 09:01:17 -0700
commit173f224570017b4b1a3a1a13d0bff280a54d9cd9 (patch)
treea26ac171d14015f51edbd710f788613d6517f4cf /test/test_jit_fuser.py
parent96456bfa4cf9394c9c926b143cf724a09901908d (diff)
downloadpytorch-173f224570017b4b1a3a1a13d0bff280a54d9cd9.tar.gz
pytorch-173f224570017b4b1a3a1a13d0bff280a54d9cd9.tar.bz2
pytorch-173f224570017b4b1a3a1a13d0bff280a54d9cd9.zip
Turn on F401: Unused import warning. (#18598)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/18598 ghimport-source-id: c74597e5e7437e94a43c163cee0639b20d0d0c6a Stack from [ghstack](https://github.com/ezyang/ghstack): * **#18598 Turn on F401: Unused import warning.** This was requested by someone at Facebook; this lint is turned on for Facebook by default. "Sure, why not." I had to noqa a number of imports in __init__. Hypothetically we're supposed to use __all__ in this case, but I was too lazy to fix it. Left for future work. Be careful! flake8-2 and flake8-3 behave differently with respect to import resolution for # type: comments. flake8-3 will report an import unused; flake8-2 will not. For now, I just noqa'd all these sites. All the changes were done by hand. Signed-off-by: Edward Z. Yang <ezyang@fb.com> Differential Revision: D14687478 fbshipit-source-id: 30d532381e914091aadfa0d2a5a89404819663e3
Diffstat (limited to 'test/test_jit_fuser.py')
-rw-r--r--test/test_jit_fuser.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/test/test_jit_fuser.py b/test/test_jit_fuser.py
index 7a3c6cbe18..c435f8fec3 100644
--- a/test/test_jit_fuser.py
+++ b/test/test_jit_fuser.py
@@ -3,17 +3,12 @@ from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
-import functools
-import os
import unittest
-import sys
import torch
-import torch.autograd.function as function
from torch import Tensor
-from common_utils import TestCase, run_tests, IS_WINDOWS, \
+from common_utils import IS_WINDOWS, \
skipIfRocm, IS_SANDCASTLE
-from typing import List, Dict, Optional, Tuple
from test_jit import JitTestCase, enable_cpu_fuser, RUN_CUDA, RUN_CUDA_HALF, RUN_CUDA_MULTI_GPU, \
backward_graph