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

Function sign_diffusion

examples/sparse/sign.py:21–27  ·  view source on GitHub ↗
(A, X, r)

Source from the content-addressed store, hash-verified

19# diffusion in SIGN laconically.
20################################################################################
21def sign_diffusion(A, X, r):
22 # Perform the r-hop diffusion operation.
23 X_sign = [X]
24 for _ in range(r):
25 X = A @ X
26 X_sign.append(X)
27 return X_sign
28
29
30class SIGN(nn.Module):

Callers 1

sign.pyFile · 0.85

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected