mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-21 05:34:18 +08:00
fix lint (#8567)
This commit is contained in:
committed by
Edward Z. Yang
parent
c457fc994d
commit
c537fd7432
1
setup.py
1
setup.py
@ -113,6 +113,7 @@ from tools.setup_helpers.env import check_env_flag, check_negative_env_flag
|
||||
config_env_vars = ['CUDA', 'CUDNN', 'MKLDNN', 'NNPACK', 'DISTRIBUTED', 'DISTRIBUTED_MW',
|
||||
'SYSTEM_NCCL', 'GLOO_IBVERBS']
|
||||
|
||||
|
||||
def hotpatch_var(var):
|
||||
if check_env_flag('NO_' + var):
|
||||
os.environ['USE_' + var] = '0'
|
||||
|
Reference in New Issue
Block a user