mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
6 lines
112 B
Python
6 lines
112 B
Python
import os
|
|
|
|
|
|
def check_env_flag(name):
|
|
return os.getenv(name, '').upper() in ['ON', '1', 'YES', 'TRUE', 'Y']
|