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

Method forward

include/instance/model/visualization.h:41–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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__

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected