Some more fixes

This commit is contained in:
Shreyas Bapat 2019-04-03 22:31:22 +05:30
parent 7d3399964b
commit b79b011d5e
4 changed files with 8 additions and 9 deletions

View File

View File

@ -2,9 +2,9 @@ import os
import sys
from test_tube import HyperOptArgumentParser, Experiment
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.models.trainer import Trainer
from pytorch-lightning.utils.arg_parse import add_default_args
from pytorch-lightning.utils.pt_callbacks import EarlyStopping, ModelCheckpoint
from demo.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)
@ -27,7 +27,7 @@ AVAILABLE_MODELS = {
"""
Allows training by using command line arguments
Run by:
Run by:
# TYPE YOUR RUN COMMAND HERE
"""
@ -199,4 +199,3 @@ if __name__ == '__main__':
nb_trials=hyperparams.nb_hopt_trials,
nb_workers=len(gpu_ids)
)