adding framework level dp

This commit is contained in:
William Falcon 2019-06-25 17:56:01 -04:00
parent a519e0755b
commit cbc627459a
5 changed files with 6 additions and 5 deletions

0
docs/__init__.py Normal file
View File

0
docs/source/__init__.py Normal file
View File

View File

@ -0,0 +1 @@
from .example_model import ExampleModel

View File

@ -1,6 +1,6 @@
import torch.nn as nn
import numpy as np
from pytorch-lightning.root_module.root_module import RootModule
from pytorch_lightning.root_module.root_module import RootModule
from test_tube import HyperOptArgumentParser
from torchvision.datasets import MNIST
import torchvision.transforms as transforms

View File

@ -5,10 +5,10 @@ from time import sleep
import torch
from test_tube import HyperOptArgumentParser, Experiment, SlurmCluster
from pytorch-lightning.models.trainer import Trainer
from pytorch-lightning.utils.arg_parse import add_default_args
from pytorch_lightning.models.trainer import Trainer
from pytorch_lightning.utils.arg_parse import add_default_args
from pytorch-lightning.utils.pt_callbacks import EarlyStopping, ModelCheckpoint
from pytorch_lightning.utils.pt_callbacks import EarlyStopping, ModelCheckpoint
SEED = 2334
torch.manual_seed(SEED)
@ -17,7 +17,7 @@ np.random.seed(SEED)
# ---------------------
# DEFINE MODEL HERE
# ---------------------
from example_model import ExampleModel
from docs.source.examples.example_model import ExampleModel
# ---------------------
AVAILABLE_MODELS = {