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'):
|
def __init__(self, layers=18, activation='silu'):
|
||||||
...
|
...
|
||||||
|
|
||||||
# An example of manual construction
|
# An example of construction via registry
|
||||||
runner = Runner(
|
runner = Runner(
|
||||||
model=dict(
|
model=dict(
|
||||||
type='MyAwesomeModel',
|
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')
|
model = MyAwesomeModel(layers=18, activation='relu')
|
||||||
runner = Runner(
|
runner = Runner(
|
||||||
model=model,
|
model=model,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user