MCPcopy
hub / github.com/dmlc/dgl / forward

Method forward

tutorials/blitz/4_link_predict.py:259–263  ·  view source on GitHub ↗
(self, g, h)

Source from the content-addressed store, hash-verified

257 return {"score": self.W2(F.relu(self.W1(h))).squeeze(1)}
258
259 def forward(self, g, h):
260 with g.local_scope():
261 g.ndata["h"] = h
262 g.apply_edges(self.apply_edges)
263 return g.edata["score"]
264
265
266######################################################################

Callers

nothing calls this directly

Calls 2

local_scopeMethod · 0.80
apply_edgesMethod · 0.45

Tested by

no test coverage detected