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

Method forward

include/instance/model/graph.h:40–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38 typedef typename _Vector::Float Float;
39
40 __host__ __device__ static void forward(const Vector &vertex, const Vector &context, Float &output) {
41 output = 0;
42 FOR(i, dim)
43 output += vertex[i] * context[i];
44 output = SUM(output);
45 }
46
47 template<OptimizerType optimizer_type>
48 __host__ __device__

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected