Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
MMCV
Commits
f75a88c2
Unverified
Commit
f75a88c2
authored
Feb 18, 2021
by
Zhiyuan Chen
Committed by
GitHub
Feb 18, 2021
Browse files
fix no torch.no_grad decorator for val in iter_based_runner (#835)
parent
3d229dba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
mmcv/runner/iter_based_runner.py
mmcv/runner/iter_based_runner.py
+1
-0
No files found.
mmcv/runner/iter_based_runner.py
View file @
f75a88c2
...
...
@@ -67,6 +67,7 @@ class IterBasedRunner(BaseRunner):
self
.
_inner_iter
+=
1
self
.
_iter
+=
1
@
torch
.
no_grad
()
def
val
(
self
,
data_loader
,
**
kwargs
):
self
.
model
.
eval
()
self
.
mode
=
'val'
...
...
Write
Preview
Markdown
is supported
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