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