| 118 | |
| 119 | __host__ __device__ |
| 120 | static void forward(const Vector &head, const Vector &tail, const Vector &relation, Float &output, |
| 121 | float l3_regularization) { |
| 122 | output = 0; |
| 123 | FOR(i, dim) |
| 124 | output += head[i] * relation[i] * tail[i]; |
| 125 | output = SUM(output); |
| 126 | } |
| 127 | |
| 128 | template<OptimizerType optimizer_type> |
| 129 | __host__ __device__ |
nothing calls this directly
no outgoing calls
no test coverage detected