Skip to content
Snippets Groups Projects
Unverified Commit ce7d7424 authored by Mashiro's avatar Mashiro Committed by GitHub
Browse files

Fix documentation reference in runner docstring (#668)

* [Fix]Fix error URL in runner docstring

* [Fix]Fix error URL in runner docstring

* clean the code
parent c41f193b
No related branches found
No related tags found
No related merge requests found
...@@ -1056,14 +1056,11 @@ class Runner: ...@@ -1056,14 +1056,11 @@ class Runner:
MultiOptimWrapperConstructor which gets parameters passed to MultiOptimWrapperConstructor which gets parameters passed to
corresponding optimizers and compose the ``OptimWrapperDict``. corresponding optimizers and compose the ``OptimWrapperDict``.
More details about how to customize OptimizerConstructor can be More details about how to customize OptimizerConstructor can be
found at `optimizer-docs`_. found at `optimizer-docs <https://mmengine.readthedocs.io/en/latest/tutorials/optim_wrapper.html>`_.
Returns: Returns:
OptimWrapper: Optimizer wrapper build from ``optimizer_cfg``. OptimWrapper: Optimizer wrapper build from ``optimizer_cfg``.
""" # noqa: E501
.. _optimizer-docs:
https://mmengine.readthedocs.io/en/latest/tutorials/optimizer.html
"""
if isinstance(optim_wrapper, OptimWrapper): if isinstance(optim_wrapper, OptimWrapper):
return optim_wrapper return optim_wrapper
if isinstance(optim_wrapper, (dict, ConfigDict, Config)): if isinstance(optim_wrapper, (dict, ConfigDict, Config)):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment