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
dgl
Commits
fa900595
"...git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "9b704f768880c732503fe46800986c6998ca205d"
Commit
fa900595
authored
May 11, 2018
by
zzhang-cn
Browse files
_uniform_, constant_ etc.
parent
ca0622b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
model.py
model.py
+2
-2
No files found.
model.py
View file @
fa900595
...
@@ -29,8 +29,8 @@ def build_cnn(**config):
...
@@ -29,8 +29,8 @@ def build_cnn(**config):
kernel_size
,
kernel_size
,
padding
=
tuple
((
_
-
1
)
//
2
for
_
in
kernel_size
),
padding
=
tuple
((
_
-
1
)
//
2
for
_
in
kernel_size
),
)
)
INIT
.
xavier_uniform
(
module
.
weight
)
INIT
.
xavier_uniform
_
(
module
.
weight
)
INIT
.
constant
(
module
.
bias
,
0
)
INIT
.
constant
_
(
module
.
bias
,
0
)
cnn_list
.
append
(
module
)
cnn_list
.
append
(
module
)
if
i
<
len
(
filters
)
-
1
:
if
i
<
len
(
filters
)
-
1
:
cnn_list
.
append
(
NN
.
LeakyReLU
())
cnn_list
.
append
(
NN
.
LeakyReLU
())
...
...
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