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

Method forward

examples/dgraph/models/sign.py:147–153  ·  view source on GitHub ↗
(self, graph)

Source from the content-addressed store, hash-verified

145 self.mlp.nn.reset_parameters()
146
147 def forward(self, graph):
148 if self.cache_x is None:
149 x = graph.x.contiguous()
150 self.cache_x = self.preprocessing(graph, x)
151 x = self.cache_x
152 x = self.mlp(x)
153 return F.log_softmax(x, dim=-1)
154

Callers

nothing calls this directly

Calls 2

preprocessingMethod · 0.95
contiguousMethod · 0.80

Tested by

no test coverage detected