caffe2/core/blob_serialization.cc
// The blob serialization member function implementation.
The blob serialization member function implementation.
The blob serialization member function implementation .
std::string Blob::Serialize(const string& name) const {
  std::string data;
  BlobSerializerBase::SerializationAcceptor acceptor = [&data](
      const std::string&, const std::string& blob) {
    DCHECK(data.empty()); 
    data = blob;
  };
  this->Serialize(name, acceptor, kNoChunking);
  return data;
}
std :: string Blob :: Serialize ( const string & name ) const { std :: string data ; BlobSerializerBase :: SerializationAcceptor acceptor = [ & data ] ( const std :: string & , const std :: string & blob ) { DCHECK ( data . empty ( ) ) ; data = blob ; } ; this -> Serialize ( name , acceptor , kNoChunking ) ; return data ; }
The blob serialization member function implementation.
The blob serialization member function implementation .
// should be called once with kNoChunking