modified _caffe.cpp to support GPU mode when extracting features.