Replies: 1 comment
-
当我使用 MMYOLO Debug 到这一步时,发现了 cls 就是 <class 'mmengine.runner.runner.Runner'> 这个类本身。 然后去查找 python 的官方文档,发现 cls 是 classmethod 的一种固定用法,就是代表类本身,哈哈,暴露了 Python 基础不扎实。 切换为Pycharm进行智能跳转的时候 cls 能够直接跳转到类,而vscode失败。 https://docs.python.org/3.8/library/functions.html?highlight=classmethod#classmethod |
Beta Was this translation helpful? Give feedback.
-
May you explain the meaning of the following cls, it is not very clear ?
mmengine/runner/runner.py#L422
Beta Was this translation helpful? Give feedback.
All reactions