fix caffe gpu adapt