Open
Description
As described in the title.
Should implement compat_cfg
in mmengine to handle the compatibility issues in one place.
In the function, it could handle the compatibility issues of
- compatibility issue of pytorch, like persistent_workers that only works in more recent version of pytorch
- compatibility issue of the cfg changes in runner
Motivation
Currently there are multiple places that do some implicit conversion of cfg options, we should put them in one place.
Related resources
In MMDet 2.x, there is an implementation of compat_config.py