forked from catalyst-team/catalyst
-
Notifications
You must be signed in to change notification settings - Fork 0
/
__init__.py
26 lines (23 loc) · 918 Bytes
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# flake8: noqa
# Needed to collect coverage data
import os
import path
DATA_ROOT = path.Path(os.path.abspath(os.path.dirname(__file__))).abspath()
MOVIELENS_ROOT = (
path.Path(os.path.abspath(os.path.dirname(__file__)))
.joinpath("./movielens")
.abspath()
)
MOVIELENS20M_ROOT = (
path.Path(os.path.abspath(os.path.dirname(__file__)))
.joinpath("./movielens20m")
.abspath()
)
IS_CPU_REQUIRED = os.environ.get("CPU_REQUIRED", "0") == "1"
IS_GPU_REQUIRED = os.environ.get("GPU_REQUIRED", "0") == "1"
IS_GPU_AMP_REQUIRED = os.environ.get("GPU_AMP_REQUIRED", "0") == "1"
IS_DP_REQUIRED = os.environ.get("DP_REQUIRED", "0") == "1"
IS_DP_AMP_REQUIRED = os.environ.get("DP_AMP_REQUIRED", "0") == "1"
IS_DDP_REQUIRED = os.environ.get("DDP_REQUIRED", "0") == "1"
IS_DDP_AMP_REQUIRED = os.environ.get("DDP_AMP_REQUIRED", "0") == "1"
IS_CONFIGS_REQUIRED = os.environ.get("CONFIGS_REQUIRED", "0") == "1"