Shortcuts

mmengine.utils.deprecated_api_warning

mmengine.utils.deprecated_api_warning(name_dict, cls_name=None)[源代码]

A decorator to check if some arguments are deprecate and try to replace deprecate src_arg_name to dst_arg_name.

参数
  • name_dict (dict) – key (str): Deprecate argument names. val (str): Expected argument names.

  • cls_name (Optional[str]) –

返回

New function.

返回类型

func

Read the Docs v: v0.7.0
Versions
latest
stable
v0.7.0
v0.6.0
v0.5.0
v0.4.0
v0.3.0
v0.2.0
Downloads
On Read the Docs
Project Home
Builds

Free document hosting provided by Read the Docs.