StringSerializer is the serializer for String. More...
Public Member Functions | |
void | Serialize (const void *pointer, TypeMeta typeMeta, const string &name, SerializationAcceptor acceptor) override |
Serializes a Blob. More... | |
Public Member Functions inherited from caffe2::BlobSerializerBase | |
virtual void | Serialize (const void *pointer, TypeMeta typeMeta, const std::string &name, SerializationAcceptor acceptor)=0 |
The virtual function that returns a serialized string for the input blob. More... | |
virtual void | SerializeWithChunkSize (const void *pointer, TypeMeta typeMeta, const std::string &name, SerializationAcceptor acceptor, int) |
Additional Inherited Members | |
Public Types inherited from caffe2::BlobSerializerBase | |
using | SerializationAcceptor = std::function< void(const std::string &blobName, const std::string &data)> |
StringSerializer is the serializer for String.
StringSerializer takes in a blob that contains a String, and serializes it into a BlobProto protocol buffer.
Definition at line 31 of file blob_serialization.cc.
|
inlineoverride |
Serializes a Blob.
Note that this blob has to contain Tensor, otherwise this function produces a fatal error.
Definition at line 39 of file blob_serialization.cc.