| 39 | |
| 40 | __host__ __device__ |
| 41 | static void forward(const Vector &head, const Vector &tail, Float &output) { |
| 42 | output = 0; |
| 43 | FOR(i, dim) |
| 44 | output += (head[i] - tail[i]) * (head[i] - tail[i]); |
| 45 | output = SUM(output); |
| 46 | } |
| 47 | |
| 48 | template<OptimizerType optimizer_type> |
| 49 | __host__ __device__ |
nothing calls this directly
no outgoing calls
no test coverage detected