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
ModelZoo
ResNet50_tensorflow
Commits
0e5cc640
Commit
0e5cc640
authored
Jan 19, 2017
by
Olivia
Committed by
GitHub
Jan 19, 2017
Browse files
update the initializer changes
parent
f565b808
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
inception/inception/slim/ops.py
inception/inception/slim/ops.py
+2
-2
No files found.
inception/inception/slim/ops.py
View file @
0e5cc640
...
@@ -85,7 +85,7 @@ def batch_norm(inputs,
...
@@ -85,7 +85,7 @@ def batch_norm(inputs,
if
center
:
if
center
:
beta
=
variables
.
variable
(
'beta'
,
beta
=
variables
.
variable
(
'beta'
,
params_shape
,
params_shape
,
initializer
=
tf
.
zeros_initializer
,
initializer
=
tf
.
zeros_initializer
()
,
trainable
=
trainable
,
trainable
=
trainable
,
restore
=
restore
)
restore
=
restore
)
if
scale
:
if
scale
:
...
@@ -99,7 +99,7 @@ def batch_norm(inputs,
...
@@ -99,7 +99,7 @@ def batch_norm(inputs,
moving_collections
=
[
moving_vars
,
tf
.
GraphKeys
.
MOVING_AVERAGE_VARIABLES
]
moving_collections
=
[
moving_vars
,
tf
.
GraphKeys
.
MOVING_AVERAGE_VARIABLES
]
moving_mean
=
variables
.
variable
(
'moving_mean'
,
moving_mean
=
variables
.
variable
(
'moving_mean'
,
params_shape
,
params_shape
,
initializer
=
tf
.
zeros_initializer
,
initializer
=
tf
.
zeros_initializer
()
,
trainable
=
False
,
trainable
=
False
,
restore
=
restore
,
restore
=
restore
,
collections
=
moving_collections
)
collections
=
moving_collections
)
...
...
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