Skip to content

Add compat_cfg to handle the compatibility issues in one place #381

Open
@ZwwWayne

Description

@ZwwWayne

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions