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

Function serialize

examples/custom_trainer_ex.cpp:61–66  ·  view source on GitHub ↗

Later on in this example we will save our decision functions to disk. This pair of routines is needed for this functionality.

Source from the content-addressed store, hash-verified

59// Later on in this example we will save our decision functions to disk. This
60// pair of routines is needed for this functionality.
61void serialize (const custom_decision_function& item, std::ostream& out)
62{
63 // write the state of item to the output stream
64 serialize(item.positive_center, out);
65 serialize(item.negative_center, out);
66}
67
68void deserialize (custom_decision_function& item, std::istream& in)
69{

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected