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
wangsen
paddle_dbnet
Commits
33d96880
Commit
33d96880
authored
Nov 10, 2020
by
WenmuZhou
Browse files
更新NumpyArrayInitializer为Assign
parent
65d3dfc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
ppocr/modeling/transform/tps.py
ppocr/modeling/transform/tps.py
+2
-4
No files found.
ppocr/modeling/transform/tps.py
View file @
33d96880
...
...
@@ -102,13 +102,11 @@ class LocalizationNetwork(nn.Layer):
name
=
"loc_fc2"
param_attr
=
ParamAttr
(
learning_rate
=
loc_lr
,
initializer
=
paddle
.
fluid
.
initializer
.
NumpyArrayInitializer
(
np
.
zeros
([
fc_dim
,
F
*
2
])),
initializer
=
nn
.
initializer
.
Assign
(
np
.
zeros
([
fc_dim
,
F
*
2
])),
name
=
name
+
"_w"
)
bias_attr
=
ParamAttr
(
learning_rate
=
loc_lr
,
initializer
=
paddle
.
fluid
.
initializer
.
NumpyArrayInitializer
(
initial_bias
),
initializer
=
nn
.
initializer
.
Assign
(
initial_bias
),
name
=
name
+
"_b"
)
self
.
fc2
=
nn
.
Linear
(
fc_dim
,
...
...
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