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
320545f0
Commit
320545f0
authored
Jan 30, 2017
by
Neal Wu
Browse files
Update tf.concat_v2 to tf.concat
parent
e2ecda2c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tutorials/image/cifar10/cifar10_multi_gpu_train.py
tutorials/image/cifar10/cifar10_multi_gpu_train.py
+1
-1
No files found.
tutorials/image/cifar10/cifar10_multi_gpu_train.py
View file @
320545f0
...
@@ -124,7 +124,7 @@ def average_gradients(tower_grads):
...
@@ -124,7 +124,7 @@ def average_gradients(tower_grads):
grads
.
append
(
expanded_g
)
grads
.
append
(
expanded_g
)
# Average over the 'tower' dimension.
# Average over the 'tower' dimension.
grad
=
tf
.
concat
_v2
(
grads
,
0
)
grad
=
tf
.
concat
(
grads
,
0
)
grad
=
tf
.
reduce_mean
(
grad
,
0
)
grad
=
tf
.
reduce_mean
(
grad
,
0
)
# Keep in mind that the Variables are redundant because they are shared
# Keep in mind that the Variables are redundant because they are shared
...
...
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