mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-10-30 13:40:46 +08:00
refactored model tests
This commit is contained in:
1 parent
ecb68b52f8
commit
c26d200c41
2 files changed
+1
-5
No files matched your search
@@ -54,10 +54,6 @@ class LightningTemplateModel(LightningModule):
|
||||
:param x:
|
||||
:return:
|
||||
"""
|
||||
print('-'*100)
|
||||
print('x: ', x.device)
|
||||
print('model: ', self.c_d1.weight.device)
|
||||
print('-'*100)
|
||||
|
||||
x = self.c_d1(x)
|
||||
x = torch.tanh(x)
|
||||
|
||||
+1
-1
@@ -107,7 +107,7 @@ def main():
|
||||
trainer = Trainer(
|
||||
experiment=exp,
|
||||
checkpoint_callback=checkpoint,
|
||||
progress_bar=False,
|
||||
progress_bar=True,
|
||||
max_nb_epochs=1,
|
||||
gpus=[0, 1],
|
||||
distributed_backend='dp',
|
||||
|
||||
Reference in new issue
Block a user