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

Method device

dlib/cuda/gpu_data.h:115–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113 }
114
115 const float* device() const
116 {
117#ifndef DLIB_USE_CUDA
118 DLIB_CASSERT(false, "CUDA NOT ENABLED");
119#else
120 DLIB_CASSERT(cuda::use_cuda(), "CUDA disabled");
121#endif
122 copy_to_device();
123 device_in_use = true;
124 return data_device.get();
125 }
126
127 float* device()
128 {

Callers 15

test_basic_tensor_opsFunction · 0.45
gemmFunction · 0.45
fill_gaussianMethod · 0.45
fill_uniformMethod · 0.45
addFunction · 0.45
batch_normalizeFunction · 0.45
batch_normalize_gradientFunction · 0.45
batch_normalize_convFunction · 0.45

Calls 2

use_cudaFunction · 0.85
getMethod · 0.45

Tested by 1

test_basic_tensor_opsFunction · 0.36