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

Function deserialize

dlib/cuda/gpu_data.h:195–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193 }
194
195 inline void deserialize(gpu_data& item, std::istream& in)
196 {
197 int version;
198 deserialize(version, in);
199 if (version != 1)
200 throw serialization_error("Unexpected version found while deserializing dlib::gpu_data.");
201 size_t s;
202 deserialize(s, in);
203 item.set_size(s);
204 auto data = item.host();
205 for (size_t i = 0; i < item.size(); ++i)
206 deserialize(data[i], in);
207 }
208
209#ifdef DLIB_USE_CUDA
210 void memcpy (gpu_data& dest, const gpu_data& src);

Callers

nothing calls this directly

Calls 4

serialization_errorClass · 0.85
set_sizeMethod · 0.45
hostMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected