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

Function serialize

examples/sequence_labeler_ex.cpp:168–168  ·  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

166// implementation is empty since our feature_extractor doesn't have any state. But you
167// might define more complex feature extractors which have state that needs to be saved.
168void serialize(const feature_extractor&, std::ostream&) {}
169void deserialize(feature_extractor&, std::istream&) {}
170
171// ----------------------------------------------------------------------------------------

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected