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

Function dot_prods

dlib/cuda/tensor_tools.cpp:59–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

57 }
58
59 void dot_prods (
60 resizable_tensor& out,
61 const tensor& lhs,
62 const tensor& rhs
63 )
64 {
65#ifdef DLIB_USE_CUDA
66 cuda::dot_prods(out, lhs, rhs);
67#else
68 out = sum_cols(pointwise_multiply(mat(lhs), mat(rhs)));
69#endif
70 }
71
72 void dot_prods (
73 bool add_to,

Callers 4

test_more_opsFunction · 0.85
backwardMethod · 0.85
backwardMethod · 0.85
backward_inplaceMethod · 0.85

Calls 3

sum_colsFunction · 0.85
pointwise_multiplyFunction · 0.85
matFunction · 0.70

Tested by 1

test_more_opsFunction · 0.68