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
8e54ffc8
Commit
8e54ffc8
authored
May 19, 2017
by
Neal Wu
Browse files
Add tf.identity
parent
443c0745
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
inception/inception/slim/ops_test.py
inception/inception/slim/ops_test.py
+3
-3
No files found.
inception/inception/slim/ops_test.py
View file @
8e54ffc8
...
...
@@ -601,7 +601,7 @@ class BatchNormTest(tf.test.TestCase):
with
tf
.
control_dependencies
(
update_ops
):
barrier
=
tf
.
no_op
(
name
=
'gradient_barrier'
)
with
tf
.
control_dependencies
([
barrier
]):
output
=
output
output
=
tf
.
identity
(
output
)
# Initialize all variables
sess
.
run
(
tf
.
global_variables_initializer
())
moving_mean
=
variables
.
get_variables
(
'BatchNorm/moving_mean'
)[
0
]
...
...
@@ -632,7 +632,7 @@ class BatchNormTest(tf.test.TestCase):
with
tf
.
control_dependencies
(
update_ops
):
barrier
=
tf
.
no_op
(
name
=
'gradient_barrier'
)
with
tf
.
control_dependencies
([
barrier
]):
output
=
output
output
=
tf
.
identity
(
output
)
# Initialize all variables
sess
.
run
(
tf
.
global_variables_initializer
())
moving_mean
=
variables
.
get_variables
(
'BatchNorm/moving_mean'
)[
0
]
...
...
@@ -667,7 +667,7 @@ class BatchNormTest(tf.test.TestCase):
with
tf
.
control_dependencies
(
update_ops
):
barrier
=
tf
.
no_op
(
name
=
'gradient_barrier'
)
with
tf
.
control_dependencies
([
barrier
]):
output
=
output
output
=
tf
.
identity
(
output
)
# Initialize all variables
sess
.
run
(
tf
.
global_variables_initializer
())
moving_mean
=
variables
.
get_variables
(
'BatchNorm/moving_mean'
)[
0
]
...
...
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