mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
5 lines
99 B
Python
5 lines
99 B
Python
import os
|
|
|
|
def check_env_flag(name):
|
|
return os.getenv(name) in {'ON', '1', 'YES', 'TRUE', 'Y'}
|