BVLC/caffe — pull request #1591 by tnarihi (2014-12-18 00:36:49+00:00)
Title: fix random crop in DataTransformer

It's a really small fix. I found the random crop in DataTransformer doesn't work properly. It produces neither rightmost nor bottom-most random crop. Let's see the extreme case, height=32 and crop_size=31. `Rand() % (height - crop_size)` --> `Rand() % 1` never generate other than 0. No test so far.