Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
870857cf
"git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "54af3ca7fd910c8abeeb022ee7583ef725bce85c"
Unverified
Commit
870857cf
authored
Dec 09, 2019
by
Zihao Ye
Committed by
GitHub
Dec 09, 2019
Browse files
udp (#1083)
parent
a5a052b5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
2 deletions
+3
-2
python/dgl/convert.py
python/dgl/convert.py
+1
-0
python/dgl/nn/mxnet/conv/appnpconv.py
python/dgl/nn/mxnet/conv/appnpconv.py
+1
-1
python/dgl/nn/pytorch/conv/appnpconv.py
python/dgl/nn/pytorch/conv/appnpconv.py
+1
-1
No files found.
python/dgl/convert.py
View file @
870857cf
...
@@ -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).
...
...
python/dgl/nn/mxnet/conv/appnpconv.py
View file @
870857cf
...
@@ -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
----------
----------
...
...
python/dgl/nn/pytorch/conv/appnpconv.py
View file @
870857cf
...
@@ -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
----------
----------
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment