diff --git a/examples/README.md b/pl_examples/README.md similarity index 100% rename from examples/README.md rename to pl_examples/README.md diff --git a/examples/__init__.py b/pl_examples/__init__.py similarity index 100% rename from examples/__init__.py rename to pl_examples/__init__.py diff --git a/examples/basic_examples/README.md b/pl_examples/basic_examples/README.md similarity index 100% rename from examples/basic_examples/README.md rename to pl_examples/basic_examples/README.md diff --git a/examples/basic_examples/__init__.py b/pl_examples/basic_examples/__init__.py similarity index 100% rename from examples/basic_examples/__init__.py rename to pl_examples/basic_examples/__init__.py diff --git a/examples/basic_examples/cpu_template.py b/pl_examples/basic_examples/cpu_template.py similarity index 93% rename from examples/basic_examples/cpu_template.py rename to pl_examples/basic_examples/cpu_template.py index 51a36f87c3..54e1620842 100644 --- a/examples/basic_examples/cpu_template.py +++ b/pl_examples/basic_examples/cpu_template.py @@ -7,7 +7,7 @@ import torch from argparse import ArgumentParser from pytorch_lightning import Trainer -from examples.basic_examples.lightning_module_template import LightningTemplateModel +from pl_examples.basic_examples.lightning_module_template import LightningTemplateModel SEED = 2334 torch.manual_seed(SEED) diff --git a/examples/basic_examples/gpu_template.py b/pl_examples/basic_examples/gpu_template.py similarity index 95% rename from examples/basic_examples/gpu_template.py rename to pl_examples/basic_examples/gpu_template.py index 8c65f88b18..9b15f463a5 100644 --- a/examples/basic_examples/gpu_template.py +++ b/pl_examples/basic_examples/gpu_template.py @@ -7,7 +7,7 @@ import torch from argparse import ArgumentParser from pytorch_lightning import Trainer -from examples.basic_examples.lightning_module_template import LightningTemplateModel +from pl_examples.basic_examples.lightning_module_template import LightningTemplateModel SEED = 2334 torch.manual_seed(SEED) diff --git a/examples/basic_examples/lightning_module_template.py b/pl_examples/basic_examples/lightning_module_template.py similarity index 100% rename from examples/basic_examples/lightning_module_template.py rename to pl_examples/basic_examples/lightning_module_template.py diff --git a/examples/domain_templates/__init__.py b/pl_examples/domain_templates/__init__.py similarity index 100% rename from examples/domain_templates/__init__.py rename to pl_examples/domain_templates/__init__.py diff --git a/examples/domain_templates/gan.py b/pl_examples/domain_templates/gan.py similarity index 100% rename from examples/domain_templates/gan.py rename to pl_examples/domain_templates/gan.py diff --git a/examples/multi_node_examples/README.md b/pl_examples/multi_node_examples/README.md similarity index 100% rename from examples/multi_node_examples/README.md rename to pl_examples/multi_node_examples/README.md diff --git a/examples/multi_node_examples/__init__.py b/pl_examples/multi_node_examples/__init__.py similarity index 100% rename from examples/multi_node_examples/__init__.py rename to pl_examples/multi_node_examples/__init__.py diff --git a/examples/multi_node_examples/ddp2_job_submit.sh b/pl_examples/multi_node_examples/ddp2_job_submit.sh similarity index 100% rename from examples/multi_node_examples/ddp2_job_submit.sh rename to pl_examples/multi_node_examples/ddp2_job_submit.sh diff --git a/examples/multi_node_examples/ddp_job_submit.sh b/pl_examples/multi_node_examples/ddp_job_submit.sh similarity index 100% rename from examples/multi_node_examples/ddp_job_submit.sh rename to pl_examples/multi_node_examples/ddp_job_submit.sh diff --git a/examples/multi_node_examples/multi_node_ddp2_demo.py b/pl_examples/multi_node_examples/multi_node_ddp2_demo.py similarity index 93% rename from examples/multi_node_examples/multi_node_ddp2_demo.py rename to pl_examples/multi_node_examples/multi_node_ddp2_demo.py index 244eb04470..1267fbcd27 100644 --- a/examples/multi_node_examples/multi_node_ddp2_demo.py +++ b/pl_examples/multi_node_examples/multi_node_ddp2_demo.py @@ -7,7 +7,7 @@ import torch from argparse import ArgumentParser from pytorch_lightning import Trainer -from examples.basic_examples.lightning_module_template import LightningTemplateModel +from pl_examples.basic_examples.lightning_module_template import LightningTemplateModel SEED = 2334 torch.manual_seed(SEED) diff --git a/examples/multi_node_examples/multi_node_ddp_demo.py b/pl_examples/multi_node_examples/multi_node_ddp_demo.py similarity index 93% rename from examples/multi_node_examples/multi_node_ddp_demo.py rename to pl_examples/multi_node_examples/multi_node_ddp_demo.py index c380497ba4..7b41ad4c67 100644 --- a/examples/multi_node_examples/multi_node_ddp_demo.py +++ b/pl_examples/multi_node_examples/multi_node_ddp_demo.py @@ -7,7 +7,7 @@ import torch from argparse import ArgumentParser from pytorch_lightning import Trainer -from examples.basic_examples.lightning_module_template import LightningTemplateModel +from pl_examples.basic_examples.lightning_module_template import LightningTemplateModel SEED = 2334 torch.manual_seed(SEED) diff --git a/tests/debug.py b/tests/debug.py index 6f95de1bcd..3a8ccb6c26 100644 --- a/tests/debug.py +++ b/tests/debug.py @@ -1,5 +1,5 @@ from pytorch_lightning import Trainer -from examples import LightningTemplateModel +from pl_examples import LightningTemplateModel from pytorch_lightning.testing import LightningTestModel from argparse import Namespace from test_tube import Experiment diff --git a/tests/test_models.py b/tests/test_models.py index f76e5e921d..24fca32392 100644 --- a/tests/test_models.py +++ b/tests/test_models.py @@ -29,7 +29,7 @@ from pytorch_lightning.trainer.trainer import reduce_distributed_output from pytorch_lightning.root_module import model_saving from pytorch_lightning.trainer import trainer_io from pytorch_lightning.logging import TestTubeLogger -from examples import LightningTemplateModel +from pl_examples import LightningTemplateModel # generate a list of random seeds for each test RANDOM_FILE_PATHS = list(np.random.randint(12000, 19000, 1000))