caffe_copy in conditional