MCPcopy
hub / github.com/THUDM/CogDL / forward

Method forward

docs/source/examples/4custom_gnn.py:57–60  ·  view source on GitHub ↗
(self, graph, x)

Source from the content-addressed store, hash-verified

55 self.fc = torch.nn.Linear(in_feats, out_feats)
56
57 def forward(self, graph, x):
58 h = self.fc(x)
59 h = spmm(graph, h)
60 return h
61
62# %%
63# Use Custom models with CogDL

Callers

nothing calls this directly

Calls 1

spmmFunction · 0.90

Tested by

no test coverage detected