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

Method device_ready

dlib/cuda/gpu_data.h:157–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155 ) const { return host_current; }
156
157 bool device_ready (
158 ) const
159 {
160#ifdef DLIB_USE_CUDA
161 if (!cuda::use_cuda() && size() != 0)
162 return false;
163#endif
164 return device_current && !have_active_transfer;
165 }
166
167 size_t size() const { return data_size; }
168

Callers 2

tensorClass · 0.80
memcpyFunction · 0.80

Calls 2

use_cudaFunction · 0.85
sizeFunction · 0.85

Tested by

no test coverage detected