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
876c4979
"vscode:/vscode.git/clone" did not exist on "ff8ee1aedc260316fea16eef4e6eba981b03e749"
Commit
876c4979
authored
Mar 10, 2018
by
Michał Kopańko
Browse files
unnecessary variable assignment in loop
parent
3f78f4cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
samples/core/get_started/premade_estimator.py
samples/core/get_started/premade_estimator.py
+2
-1
No files found.
samples/core/get_started/premade_estimator.py
View file @
876c4979
...
...
@@ -73,8 +73,9 @@ def main(argv):
labels
=
None
,
batch_size
=
args
.
batch_size
))
template
=
(
'
\n
Prediction is "{}" ({:.1f}%), expected "{}"'
)
for
pred_dict
,
expec
in
zip
(
predictions
,
expected
):
template
=
(
'
\n
Prediction is "{}" ({:.1f}%), expected "{}"'
)
class_id
=
pred_dict
[
'class_ids'
][
0
]
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