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
4697163b
Unverified
Commit
4697163b
authored
Aug 06, 2019
by
Toby Boyd
Committed by
GitHub
Aug 06, 2019
Browse files
Metric fixed back to categorical_accuracy. (#7390)
parent
60207e08
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
official/resnet/keras/keras_cifar_main.py
official/resnet/keras/keras_cifar_main.py
+2
-2
No files found.
official/resnet/keras/keras_cifar_main.py
View file @
4697163b
...
@@ -159,7 +159,7 @@ def run(flags_obj):
...
@@ -159,7 +159,7 @@ def run(flags_obj):
model
.
compile
(
model
.
compile
(
loss
=
'categorical_crossentropy'
,
loss
=
'categorical_crossentropy'
,
optimizer
=
optimizer
,
optimizer
=
optimizer
,
metrics
=
([
'categorical_
crossentrop
y'
]
metrics
=
([
'categorical_
accurac
y'
]
if
flags_obj
.
report_accuracy_metrics
else
None
),
if
flags_obj
.
report_accuracy_metrics
else
None
),
run_eagerly
=
flags_obj
.
run_eagerly
,
run_eagerly
=
flags_obj
.
run_eagerly
,
experimental_run_tf_function
=
flags_obj
.
force_v2_in_keras_compile
)
experimental_run_tf_function
=
flags_obj
.
force_v2_in_keras_compile
)
...
@@ -167,7 +167,7 @@ def run(flags_obj):
...
@@ -167,7 +167,7 @@ def run(flags_obj):
model
.
compile
(
model
.
compile
(
loss
=
'categorical_crossentropy'
,
loss
=
'categorical_crossentropy'
,
optimizer
=
optimizer
,
optimizer
=
optimizer
,
metrics
=
([
'categorical_
crossentrop
y'
]
metrics
=
([
'categorical_
accurac
y'
]
if
flags_obj
.
report_accuracy_metrics
else
None
),
if
flags_obj
.
report_accuracy_metrics
else
None
),
run_eagerly
=
flags_obj
.
run_eagerly
)
run_eagerly
=
flags_obj
.
run_eagerly
)
...
...
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