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

Method deserialize

dlib/dnn/loss.h:106–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

104 }
105
106 friend void deserialize(loss_binary_hinge_& , std::istream& in)
107 {
108 std::string version;
109 deserialize(version, in);
110 if (version != "loss_binary_hinge_")
111 throw serialization_error("Unexpected version found while deserializing dlib::loss_binary_hinge_.");
112 }
113
114 friend std::ostream& operator<<(std::ostream& out, const loss_binary_hinge_& )
115 {

Callers

nothing calls this directly

Calls 2

serialization_errorClass · 0.85
deserializeFunction · 0.70

Tested by

no test coverage detected