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
d69d985a
Unverified
Commit
d69d985a
authored
Mar 06, 2022
by
Tan SU
Committed by
GitHub
Mar 06, 2022
Browse files
[Fix] Fix ProfilerHook when using IterBasedRunner (#1755)
parent
466a6c82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
mmcv/runner/hooks/profiler.py
mmcv/runner/hooks/profiler.py
+1
-1
No files found.
mmcv/runner/hooks/profiler.py
View file @
d69d985a
...
...
@@ -142,7 +142,7 @@ class ProfilerHook(Hook):
raise
ValueError
(
'on_trace_ready should be handler, dict or None, '
f
'but got
{
type
(
self
.
on_trace_ready
)
}
'
)
if
runner
.
max_epochs
>
1
:
if
self
.
by_epoch
and
runner
.
max_epochs
>
1
:
warnings
.
warn
(
f
'profiler will profile
{
runner
.
max_epochs
}
epochs '
'instead of 1 epoch. Since profiler will slow down '
'the training, it is recommended to train 1 epoch '
...
...
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