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

Function serialize

examples/assignment_learning_ex.cpp:148–148  ·  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

146// implementation is empty since our feature_extractor doesn't have any state. But you
147// might define more complex feature extractors which have state that needs to be saved.
148void serialize (const feature_extractor& , std::ostream& ) {}
149void deserialize (feature_extractor& , std::istream& ) {}
150
151// ----------------------------------------------------------------------------------------

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected