Skip to content

Commit

Permalink
Update train.py
Browse files Browse the repository at this point in the history
add sorted
  • Loading branch information
StrangerZhang authored Jun 26, 2019
1 parent 6ce6bed commit a7909d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def is_valid_number(x):
batch_info = {}
batch_info['batch_time'] = average_reduce(batch_time)
batch_info['data_time'] = average_reduce(data_time)
for k, v in outputs.items():
for k, v in sorted(outputs.items()):
batch_info[k] = average_reduce(v.data.item())

average_meter.update(**batch_info)
Expand Down

0 comments on commit a7909d5

Please sign in to comment.