blob
authorYangqing Jia <jiayq84@gmail.com>
Fri, 27 Sep 2013 21:55:11 +0000 (14:55 -0700)
committerYangqing Jia <jiayq84@gmail.com>
Fri, 27 Sep 2013 21:55:11 +0000 (14:55 -0700)
src/caffe/blob.cpp

index 40ee5482b98d9bb6f7a06390240faf15b572101b..616274018cc9c1ba23101315522eaab9861a5da9 100644 (file)
@@ -107,7 +107,7 @@ void Blob<Dtype>::FromProto(const BlobProto& proto) {
 }
 
 template <typename Dtype>
-void Blob<Dtype>::ToProto(BlobProto* proto, bool write_diff) {
+void Blob<Dtype>::ToProto(BlobProto* proto, bool write_diff) const {
   proto->set_num(num_);
   proto->set_channels(channels_);
   proto->set_height(height_);