Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
MMCV
Commits
323abb9e
Unverified
Commit
323abb9e
authored
Jul 17, 2022
by
Reza
Committed by
GitHub
Jul 17, 2022
Browse files
[Docs] Fix typos (#2124)
parent
75ae2009
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
docs/en/understand_mmcv/cnn.md
docs/en/understand_mmcv/cnn.md
+1
-1
docs/zh_cn/understand_mmcv/cnn.md
docs/zh_cn/understand_mmcv/cnn.md
+1
-1
No files found.
docs/en/understand_mmcv/cnn.md
View file @
323abb9e
...
...
@@ -271,7 +271,7 @@ Let us introduce the usage of `initialize` in detail.
self
.
cls
=
nn
.
Sequential
(
nn
.
Conv1d
(
3
,
1
,
3
),
nn
.
Linear
(
1
,
2
))
# if we would like to initialize model's weights as 1 and bias as 2
# but weight in `
cls
` as 3 and bias 4, we can use override key
# but weight in `
reg
` as 3 and bias 4, we can use override key
model
=
FooNet
()
init_cfg
=
dict
(
type
=
'Constant'
,
layer
=
[
'Conv1d'
,
'Conv2d'
],
val
=
1
,
bias
=
2
,
override
=
dict
(
type
=
'Constant'
,
name
=
'reg'
,
val
=
3
,
bias
=
4
))
...
...
docs/zh_cn/understand_mmcv/cnn.md
View file @
323abb9e
...
...
@@ -259,7 +259,7 @@ conv = ConvModule(
self
.
cls
=
nn
.
Sequential
(
nn
.
Conv1d
(
3
,
1
,
3
),
nn
.
Linear
(
1
,
2
))
# 如果我们想将模型的权重初始化为 1,将偏差初始化为 2
# 但希望 `
cls
` 中的权重为 3,偏差为 4,则我们可以使用关键字override
# 但希望 `
reg
` 中的权重为 3,偏差为 4,则我们可以使用关键字override
model
=
FooNet
()
init_cfg
=
dict
(
type
=
'Constant'
,
layer
=
[
'Conv1d'
,
'Conv2d'
],
val
=
1
,
bias
=
2
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment