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

Function tensor_read_cpu

dlib/test/dnn.cpp:3324–3329  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3322 }
3323
3324 float tensor_read_cpu(const tensor& t, long i, long k, long r, long c)
3325 {
3326 const float* p = t.host() + t.k() * t.nr() * t.nc() * i +
3327 t.nr() * t.nc() * k + t.nc() * r + c;
3328 return *p;
3329 }
3330 void test_copy_tensor_cpu()
3331 {
3332 using namespace dlib::tt;

Calls 4

hostMethod · 0.45
kMethod · 0.45
nrMethod · 0.45
ncMethod · 0.45

Tested by

no test coverage detected