| 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, |