File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 1717import numpy as np
1818import torch
1919
20- from pytorch_lightning .utilities import _TORCH_LOWER_EQUAL_1_4 , _TORCH_QUANTIZE_AVAILABLE
20+ logging .basicConfig (level = logging .ERROR )
21+
22+ from pytorch_lightning .utilities import _TORCH_LOWER_EQUAL_1_4 , _TORCH_QUANTIZE_AVAILABLE # noqa: E402
2123
2224_TEST_ROOT = os .path .dirname (__file__ )
2325_PROJECT_ROOT = os .path .dirname (_TEST_ROOT )
3638if not os .path .isdir (_TEMP_PATH ):
3739 os .mkdir (_TEMP_PATH )
3840
39- logging .basicConfig (level = logging .ERROR )
40-
4141_MISS_QUANT_DEFAULT = 'fbgemm' not in torch .backends .quantized .supported_engines
42-
4342_SKIPIF_ARGS_PT_LE_1_4 = dict (condition = _TORCH_LOWER_EQUAL_1_4 , reason = "test pytorch > 1.4" )
4443_SKIPIF_ARGS_NO_GPU = dict (condition = not torch .cuda .is_available (), reason = "test requires single-GPU machine" )
4544_SKIPIF_ARGS_NO_GPUS = dict (condition = torch .cuda .device_count () < 2 , reason = "test requires multi-GPU machine" )
You can’t perform that action at this time.
0 commit comments