"git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "54af3ca7fd910c8abeeb022ee7583ef725bce85c"
Unverified Commit 870857cf authored by Zihao Ye's avatar Zihao Ye Committed by GitHub
Browse files

udp (#1083)

parent a5a052b5
...@@ -235,6 +235,7 @@ def bipartite(data, utype='_U', etype='_E', vtype='_V', card=None, validate=Fals ...@@ -235,6 +235,7 @@ def bipartite(data, utype='_U', etype='_E', vtype='_V', card=None, validate=Fals
(tensor([0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2]), tensor([0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3])) (tensor([0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2]), tensor([0, 1, 2, 3, 0, 1, 2, 3, 0, 1, 2, 3]))
Check if node ids are within cardinality Check if node ids are within cardinality
>>> g = dgl.bipartite(([0, 1, 2], [1, 2, 3]), card=(2, 4), validate=True) >>> g = dgl.bipartite(([0, 1, 2], [1, 2, 3]), card=(2, 4), validate=True)
... ...
dgl._ffi.base.DGLError: Invalid node id 2 (should be less than cardinality 2). dgl._ffi.base.DGLError: Invalid node id 2 (should be less than cardinality 2).
......
...@@ -15,7 +15,7 @@ class APPNPConv(nn.Block): ...@@ -15,7 +15,7 @@ class APPNPConv(nn.Block):
H^{0} & = X H^{0} & = X
H^{t+1} & = (1-\alpha)\left(\hat{D}^{-1/2} H^{t+1} & = (1-\alpha)\left(\hat{D}^{-1/2}
\hat{A} \hat{D}^{-1/2} H^{t} + \alpha H^{0}\right) \hat{A} \hat{D}^{-1/2} H^{t}\right) + \alpha H^{0}
Parameters Parameters
---------- ----------
......
...@@ -15,7 +15,7 @@ class APPNPConv(nn.Module): ...@@ -15,7 +15,7 @@ class APPNPConv(nn.Module):
H^{0} & = X H^{0} & = X
H^{t+1} & = (1-\alpha)\left(\hat{D}^{-1/2} H^{t+1} & = (1-\alpha)\left(\hat{D}^{-1/2}
\hat{A} \hat{D}^{-1/2} H^{t} + \alpha H^{0}\right) \hat{A} \hat{D}^{-1/2} H^{t}\right) + \alpha H^{0}
Parameters Parameters
---------- ----------
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment