Skip to content

Commit

Permalink
modified division operator for compatibility of python 3
Browse files Browse the repository at this point in the history
  • Loading branch information
wasnot committed Sep 6, 2017
1 parent 1de4ceb commit 3dad332
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/caffe/classifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def predict(self, inputs, oversample=True):

# For oversampling, average predictions across crops.
if oversample:
predictions = predictions.reshape((len(predictions) / 10, 10, -1))
predictions = predictions.reshape((len(predictions) // 10, 10, -1))
predictions = predictions.mean(1)

return predictions

0 comments on commit 3dad332

Please sign in to comment.