MCPcopy Create free account
hub / github.com/DeepGraphLearning/graphvite / forward

Method forward

include/instance/model/knowledge_graph.h:120–126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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__

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected