MCPcopy Create free account
hub / github.com/davisking/dlib / serialize

Function serialize

examples/sequence_segmenter_ex.cpp:98–98  ·  view source on GitHub ↗

We need to define serialize() and deserialize() for our feature extractor if we want to be able to serialize and deserialize our learned models. In this case the implementation is empty since our feature_extractor doesn't have any state. But you might define more complex feature extractors which have state that needs to be saved.

Source from the content-addressed store, hash-verified

96// implementation is empty since our feature_extractor doesn't have any state. But you
97// might define more complex feature extractors which have state that needs to be saved.
98void serialize(const feature_extractor&, std::ostream&) {}
99void deserialize(feature_extractor&, std::istream&) {}
100
101// ----------------------------------------------------------------------------------------

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected