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
d9c430b3
Unverified
Commit
d9c430b3
authored
Mar 11, 2018
by
Mark Daoust
Committed by
GitHub
Mar 11, 2018
Browse files
Merge pull request #3561 from kopankom/fix/assigment-in-loop
unnecessary variable assignment in loop
parents
ac6ab360
080795fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
samples/core/get_started/premade_estimator.py
samples/core/get_started/premade_estimator.py
+2
-2
No files found.
samples/core/get_started/premade_estimator.py
View file @
d9c430b3
...
@@ -73,9 +73,9 @@ def main(argv):
...
@@ -73,9 +73,9 @@ def main(argv):
labels
=
None
,
labels
=
None
,
batch_size
=
args
.
batch_size
))
batch_size
=
args
.
batch_size
))
for
pred_dict
,
expec
in
zip
(
predictions
,
expected
):
template
=
(
'
\n
Prediction is "{}" ({:.1f}%), expected "{}"'
)
template
=
(
'
\n
Prediction is "{}" ({:.1f}%), expected "{}"'
)
for
pred_dict
,
expec
in
zip
(
predictions
,
expected
):
class_id
=
pred_dict
[
'class_ids'
][
0
]
class_id
=
pred_dict
[
'class_ids'
][
0
]
probability
=
pred_dict
[
'probabilities'
][
class_id
]
probability
=
pred_dict
[
'probabilities'
][
class_id
]
...
...
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