diff options
author | James Sun <jamessun@fb.com> | 2018-10-17 23:00:11 -0700 |
---|---|---|
committer | Facebook Github Bot <facebook-github-bot@users.noreply.github.com> | 2018-10-17 23:04:29 -0700 |
commit | f4944f0f8acda3bb3c0cf7ab690df6b4400598bd (patch) | |
tree | 1e26360248d8711d9be089c834c856b16d0a7638 /test/common_nn.py | |
parent | cffeb03a2db7dd1b1f4542a0b7050cce370a9053 (diff) | |
download | pytorch-f4944f0f8acda3bb3c0cf7ab690df6b4400598bd.tar.gz pytorch-f4944f0f8acda3bb3c0cf7ab690df6b4400598bd.tar.bz2 pytorch-f4944f0f8acda3bb3c0cf7ab690df6b4400598bd.zip |
Rename test/common.py to test/common_utils.py (#12794)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/12794
common.py is used in base_module for almost all tests in test/. The
name of this file is so common that can easily conflict with other dependencies
if they happen to have another common.py in the base module. Rename the file to
avoid conflict.
Reviewed By: orionr
Differential Revision: D10438204
fbshipit-source-id: 6a996c14980722330be0a9fd3a54c20af4b3d380
Diffstat (limited to 'test/common_nn.py')
-rw-r--r-- | test/common_nn.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/common_nn.py b/test/common_nn.py index 153ef2e74b..d23448e5d3 100644 --- a/test/common_nn.py +++ b/test/common_nn.py @@ -7,7 +7,7 @@ from itertools import product import torch import torch.cuda from torch.nn.functional import _Reduction -from common import TestCase, to_gpu, freeze_rng_state, is_iterable, TEST_WITH_ROCM +from common_utils import TestCase, to_gpu, freeze_rng_state, is_iterable, TEST_WITH_ROCM from common_cuda import TEST_CUDA from torch.autograd.gradcheck import get_numerical_jacobian, iter_tensors import torch.backends.cudnn |