tested on flownet2-caffe https://github.com/lmb-freiburg/flownet2/issues/92 https://github.com/BVLC/caffe/pull/5869 https://github.com/BVLC/caffe/pull/5879