Skip to content

Commit 0038b13

Browse files
committed
simplify CI horovod
1 parent b00991e commit 0038b13

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

tests/models/data/horovod/train_default_model.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@
1818

1919
import argparse
2020
import json
21-
import os
22-
import sys
23-
24-
PATH_HERE = os.path.abspath(os.path.dirname(__file__))
25-
PATH_ROOT = os.path.abspath(os.path.join(PATH_HERE, '..', '..', '..', '..'))
26-
sys.path.insert(0, os.path.abspath(PATH_ROOT))
2721

2822
from pytorch_lightning import Trainer # noqa: E402
2923
from pytorch_lightning.callbacks import ModelCheckpoint # noqa: E402
@@ -35,10 +29,6 @@
3529
print('You requested to import Horovod which is missing or not supported for your OS.')
3630

3731

38-
# Move project root to the front of the search path, as some imports may have reordered things
39-
idx = sys.path.index(PATH_ROOT)
40-
sys.path[0], sys.path[idx] = sys.path[idx], sys.path[0]
41-
4232
from tests.base import EvalModelTemplate # noqa: E402
4333
from tests.base.develop_pipelines import run_prediction # noqa: E402
4434
from tests.base.develop_utils import set_random_master_port, reset_seed # noqa: E402

0 commit comments

Comments
 (0)