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

Function tensor_read_cpu

dlib/test/dnn.cpp:2751–2756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2749 }
2750
2751 float tensor_read_cpu(const tensor& t, long i, long k, long r, long c)
2752 {
2753 const float* p = t.host() + t.k() * t.nr() * t.nc() * i +
2754 t.nr() * t.nc() * k + t.nc() * r + c;
2755 return *p;
2756 }
2757 void test_copy_tensor_cpu()
2758 {
2759 using namespace dlib::tt;

Calls 4

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

Tested by

no test coverage detected