mirror of
https://github.com/open-mmlab/mmengine.git
synced 2025-06-03 21:54:44 +08:00
[Docs] Fix a comment in runner tutorial (#1210)
This commit is contained in:
parent
478c952a6d
commit
186e17dbe7
@ -228,7 +228,7 @@ class MyAwesomeModel(BaseModel): # your custom model
|
||||
def __init__(self, layers=18, activation='silu'):
|
||||
...
|
||||
|
||||
# An example of manual construction
|
||||
# An example of construction via registry
|
||||
runner = Runner(
|
||||
model=dict(
|
||||
type='MyAwesomeModel',
|
||||
@ -237,7 +237,7 @@ runner = Runner(
|
||||
...
|
||||
)
|
||||
|
||||
# An example of construction via registry
|
||||
# An example of manual construction
|
||||
model = MyAwesomeModel(layers=18, activation='relu')
|
||||
runner = Runner(
|
||||
model=model,
|
||||
|
Loading…
x
Reference in New Issue
Block a user