10 constexpr
int kDefaultChunkSize = -1;
11 constexpr
int kNoChunking = 0;
26 using SerializationAcceptor =
27 std::function<void(const std::string& blobName, const std::string& data)>;
42 virtual void Serialize(
const Blob& blob,
const std::string& name,
43 SerializationAcceptor acceptor) = 0;
45 virtual void SerializeWithChunkSize(
47 const std::string& name,
48 SerializationAcceptor acceptor,
virtual void Serialize(const Blob &blob, const std::string &name, SerializationAcceptor acceptor)=0
The virtual function that returns a serialized string for the input blob.
Simple registry implementation in Caffe2 that uses static variables to register object creators durin...
Blob is a general container that hosts a typed pointer.
BlobSerializerBase is an abstract class that serializes a blob to a string.