Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Shreyan Chowdhury
moodwalk
Commits
d8360832
Commit
d8360832
authored
Sep 10, 2019
by
Verena Praher
Browse files
add testing to the resnet
parent
0fa40e24
Changes
1
Hide whitespace changes
Inline
Side-by-side
models/resnet18.py
View file @
d8360832
...
@@ -45,6 +45,14 @@ class Network(pl.LightningModule):
...
@@ -45,6 +45,14 @@ class Network(pl.LightningModule):
def
validation_end
(
self
,
outputs
):
def
validation_end
(
self
,
outputs
):
return
validation_end
(
outputs
)
return
validation_end
(
outputs
)
def
test_step
(
self
,
data_batch
,
batch_nb
):
return
test_step
(
self
,
data_batch
,
batch_nb
)
def
test_end
(
self
,
outputs
):
test_metrics
=
test_end
(
outputs
)
self
.
experiment
.
log
(
test_metrics
)
return
test_metrics
@
pl
.
data_loader
@
pl
.
data_loader
def
tng_dataloader
(
self
):
def
tng_dataloader
(
self
):
return
tng_dataloader
()
return
tng_dataloader
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment