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

Function dot_prods

dlib/cuda/tensor_tools.cpp:81–94  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

79 }
80
81 void dot_prods (
82 resizable_tensor& out,
83 const tensor& lhs,
84 const tensor& rhs
85 )
86 {
87 IF_DLIB_USE_CUDA(
88 cuda::dot_prods(out, lhs, rhs);
89 )
90
91 IF_DLIB_NOT_USE_CUDA(
92 out = sum_cols(pointwise_multiply(mat(lhs), mat(rhs)));
93 )
94 }
95
96 void dot_prods (
97 bool add_to,

Callers 4

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

Calls 4

sum_colsFunction · 0.85
pointwise_multiplyFunction · 0.85
matFunction · 0.70
ifFunction · 0.50

Tested by 1

test_more_opsFunction · 0.68