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

Method serialize

dlib/svm/sequence_segmenter.h:411–424  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

409 }
410
411 friend void serialize(const sequence_segmenter& item, std::ostream& out)
412 {
413 int version = 1;
414 serialize(version, out);
415
416 // Save these just so we can compare them when we deserialize and make
417 // sure the feature_extractor being used is compatible with the model being
418 // loaded.
419 serialize(feature_extractor::use_BIO_model, out);
420 serialize(feature_extractor::use_high_order_features, out);
421 serialize(total_feature_vector_size(item.get_feature_extractor()), out);
422
423 serialize(item.labeler, out);
424 }
425
426 friend void deserialize(sequence_segmenter& item, std::istream& in)
427 {

Callers

nothing calls this directly

Calls 2

serializeFunction · 0.70

Tested by

no test coverage detected