Skip to content

[Bug] error in readme #1439

@del-zhenwu

Description

@del-zhenwu

Prerequisite

Environment

Reproduces the problem - code sample

Reproduces the problem - command or script

https://mmengine.readthedocs.io/zh-cn/latest/advanced_tutorials/config.html#python-beta

Reproduces the problem - error message

# 构建流程完全一致
import torch.nn as nn
from mmengine.registry import OPTIMIZERS


cfg = Config.fromfile('optimizer.py')
model = nn.Conv2d(1, 1, 1)
cfg.optimizer.params = model.parameters()
optimizer = OPTIMIZERS.build(cfg.optimizer)

风格切换时有点小问题

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions