Fix] Fix three typos in runner (#1068)

This commit is contained in:
t chan 2023-04-12 14:09:55 +08:00 committed by GitHub
parent 6b366f236c
commit f22002ec08
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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