add caffe adapter