mirror of
https://github.com/open-mmlab/mmengine.git
synced 2025-06-03 21:54:44 +08:00
[Fix] Fix undefined variable error in Runner (#1219)
This commit is contained in:
parent
d03a1da9a9
commit
6c5366649e
@ -1396,7 +1396,7 @@ class Runner:
|
||||
else:
|
||||
raise TypeError(
|
||||
'type of worker_init_fn should be string or callable '
|
||||
f'object, but got {type(worker_init_fn)}')
|
||||
f'object, but got {type(worker_init_fn_type)}')
|
||||
assert callable(worker_init_fn)
|
||||
init_fn = partial(worker_init_fn,
|
||||
**worker_init_fn_cfg) # type: ignore
|
||||
|
Loading…
x
Reference in New Issue
Block a user