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

Function deserialize

dlib/cuda/gpu_data.h:216–228  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214 }
215
216 inline void deserialize(gpu_data& item, std::istream& in)
217 {
218 int version;
219 deserialize(version, in);
220 if (version != 1)
221 throw serialization_error("Unexpected version found while deserializing dlib::gpu_data.");
222 size_t s;
223 deserialize(s, in);
224 item.set_size(s);
225 auto data = item.host();
226 for (size_t i = 0; i < item.size(); ++i)
227 deserialize(data[i], in);
228 }
229
230#ifdef DLIB_USE_CUDA
231 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