Skip to content

Commit

Permalink
Merge pull request tensorflow#3561 from kopankom/fix/assigment-in-loop
Browse files Browse the repository at this point in the history
unnecessary variable assignment in loop
  • Loading branch information
MarkDaoust authored Mar 12, 2018
2 parents ac6ab36 + 080795f commit d9c430b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions samples/core/get_started/premade_estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ def main(argv):
labels=None,
batch_size=args.batch_size))

for pred_dict, expec in zip(predictions, expected):
template = ('\nPrediction is "{}" ({:.1f}%), expected "{}"')
template = ('\nPrediction is "{}" ({:.1f}%), expected "{}"')

for pred_dict, expec in zip(predictions, expected):
class_id = pred_dict['class_ids'][0]
probability = pred_dict['probabilities'][class_id]

Expand Down

0 comments on commit d9c430b

Please sign in to comment.