File tree Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 1919_TEST_ROOT = os .path .dirname (__file__ )
2020_PROJECT_ROOT = os .path .dirname (_TEST_ROOT )
2121_TEMP_PATH = os .path .join (_PROJECT_ROOT , 'test_temp' )
22- DATASETS_PATH = os .path .join (_PROJECT_ROOT , 'Datasets' )
23- LEGACY_PATH = os .path .join (_PROJECT_ROOT , 'legacy' )
22+ PATH_DATASETS = os .path .join (_PROJECT_ROOT , 'Datasets' )
23+ PATH_LEGACY = os .path .join (_PROJECT_ROOT , 'legacy' )
2424
2525# todo: this setting `PYTHONPATH` may not be used by other evns like Conda for import packages
2626if _PROJECT_ROOT not in os .getenv ('PYTHONPATH' , "" ):
Original file line number Diff line number Diff line change 1818import torch .nn .functional as F
1919
2020from pytorch_lightning .core .lightning import LightningModule
21+ from tests import PATH_DATASETS
2122from tests .base .model_optimizers import ConfigureOptimizersPool
2223from tests .base .model_test_dataloaders import TestDataloaderVariations
2324from tests .base .model_test_epoch_ends import TestEpochEndVariations
2829from tests .base .model_valid_dataloaders import ValDataloaderVariations
2930from tests .base .model_valid_epoch_ends import ValidationEpochEndVariations
3031from tests .base .model_valid_steps import ValidationStepVariations
31- from tests .helpers .datasets import PATH_DATASETS , TrialMNIST
32+ from tests .helpers .datasets import TrialMNIST
3233
3334
3435class EvalModelTemplate (
Original file line number Diff line number Diff line change 1818import pytest
1919
2020from pytorch_lightning import Trainer
21- from tests import LEGACY_PATH
21+ from tests import PATH_LEGACY
2222
23- LEGACY_CHECKPOINTS_PATH = os .path .join (LEGACY_PATH , 'checkpoints' )
23+ LEGACY_CHECKPOINTS_PATH = os .path .join (PATH_LEGACY , 'checkpoints' )
2424CHECKPOINT_EXTENSION = ".ckpt"
2525
2626
Original file line number Diff line number Diff line change 2222from torch import Tensor
2323from torch .utils .data import Dataset
2424
25- from tests import _PROJECT_ROOT
26-
27- #: local path to test datasets
28- PATH_DATASETS = os .path .join (_PROJECT_ROOT , 'Datasets' )
25+ from tests import PATH_DATASETS
2926
3027
3128class MNIST (Dataset ):
You can’t perform that action at this time.
0 commit comments