From b0281395bf4620c5a9aacee18c81b1cb9747293b Mon Sep 17 00:00:00 2001 From: William Falcon Date: Fri, 18 Oct 2019 15:44:58 +0200 Subject: [PATCH] changes examples to pl_examples for name connflict --- {examples => pl_examples}/README.md | 0 {examples => pl_examples}/__init__.py | 0 {examples => pl_examples}/basic_examples/README.md | 0 {examples => pl_examples}/basic_examples/__init__.py | 0 {examples => pl_examples}/basic_examples/cpu_template.py | 2 +- {examples => pl_examples}/basic_examples/gpu_template.py | 2 +- .../basic_examples/lightning_module_template.py | 0 {examples => pl_examples}/domain_templates/__init__.py | 0 {examples => pl_examples}/domain_templates/gan.py | 0 {examples => pl_examples}/multi_node_examples/README.md | 0 {examples => pl_examples}/multi_node_examples/__init__.py | 0 .../multi_node_examples/ddp2_job_submit.sh | 0 {examples => pl_examples}/multi_node_examples/ddp_job_submit.sh | 0 .../multi_node_examples/multi_node_ddp2_demo.py | 2 +- .../multi_node_examples/multi_node_ddp_demo.py | 2 +- tests/debug.py | 2 +- tests/test_models.py | 2 +- 17 files changed, 6 insertions(+), 6 deletions(-) rename {examples => pl_examples}/README.md (100%) rename {examples => pl_examples}/__init__.py (100%) rename {examples => pl_examples}/basic_examples/README.md (100%) rename {examples => pl_examples}/basic_examples/__init__.py (100%) rename {examples => pl_examples}/basic_examples/cpu_template.py (93%) rename {examples => pl_examples}/basic_examples/gpu_template.py (95%) rename {examples => pl_examples}/basic_examples/lightning_module_template.py (100%) rename {examples => pl_examples}/domain_templates/__init__.py (100%) rename {examples => pl_examples}/domain_templates/gan.py (100%) rename {examples => pl_examples}/multi_node_examples/README.md (100%) rename {examples => pl_examples}/multi_node_examples/__init__.py (100%) rename {examples => pl_examples}/multi_node_examples/ddp2_job_submit.sh (100%) rename {examples => pl_examples}/multi_node_examples/ddp_job_submit.sh (100%) rename {examples => pl_examples}/multi_node_examples/multi_node_ddp2_demo.py (93%) rename {examples => pl_examples}/multi_node_examples/multi_node_ddp_demo.py (93%) 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))