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
3a19c394
Unverified
Commit
3a19c394
authored
Feb 14, 2019
by
Toby Boyd
Committed by
GitHub
Feb 14, 2019
Browse files
compat.v1.trainable_variables() (#6203)
parent
ae699073
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
official/resnet/resnet_run_loop.py
official/resnet/resnet_run_loop.py
+1
-1
No files found.
official/resnet/resnet_run_loop.py
View file @
3a19c394
...
...
@@ -364,7 +364,7 @@ def resnet_model_fn(features, labels, mode, model_class,
# loss is computed using fp32 for numerical stability.
[
tf
.
nn
.
l2_loss
(
tf
.
cast
(
v
,
tf
.
float32
))
for
v
in
tf
.
trainable_variables
()
for
v
in
tf
.
compat
.
v1
.
trainable_variables
()
if
loss_filter_fn
(
v
.
name
)
])
/
tf
.
distribute
.
get_strategy
().
num_replicas_in_sync
tf
.
compat
.
v1
.
summary
.
scalar
(
'l2_loss'
,
l2_loss
)
...
...
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