mirror of
https://github.com/open-mmlab/mmengine.git
synced 2025-06-03 21:54:44 +08:00
Fix] Fix three typos in runner (#1068)
This commit is contained in:
parent
6b366f236c
commit
f22002ec08
@ -1459,7 +1459,7 @@ class Runner:
|
||||
return loop
|
||||
elif not isinstance(loop, dict):
|
||||
raise TypeError(
|
||||
f'loop should be a Loop object or dict, but got {loop}')
|
||||
f'train_loop should be a Loop object or dict, but got {loop}')
|
||||
|
||||
loop_cfg = copy.deepcopy(loop)
|
||||
|
||||
@ -1505,7 +1505,7 @@ class Runner:
|
||||
return loop
|
||||
elif not isinstance(loop, dict):
|
||||
raise TypeError(
|
||||
f'train_loop should be a Loop object or dict, but got {loop}')
|
||||
f'val_loop should be a Loop object or dict, but got {loop}')
|
||||
|
||||
loop_cfg = copy.deepcopy(loop)
|
||||
|
||||
@ -1547,7 +1547,7 @@ class Runner:
|
||||
return loop
|
||||
elif not isinstance(loop, dict):
|
||||
raise TypeError(
|
||||
f'train_loop should be a Loop object or dict, but got {loop}')
|
||||
f'test_loop should be a Loop object or dict, but got {loop}')
|
||||
|
||||
loop_cfg = copy.deepcopy(loop) # type: ignore
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user