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
d1f6f3a8
Unverified
Commit
d1f6f3a8
authored
Jun 24, 2022
by
PotatoChipsNinja
Committed by
GitHub
Jun 24, 2022
Browse files
[Doc] fix a bug in guide_cn (#4149)
Co-authored-by:
Xin Yao
<
xiny@nvidia.com
>
parent
020f0249
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
docs/source/guide_cn/message-efficient.rst
docs/source/guide_cn/message-efficient.rst
+1
-1
No files found.
docs/source/guide_cn/message-efficient.rst
View file @
d1f6f3a8
...
@@ -22,7 +22,7 @@ DGL建议用户尽量减少边的特征维数。
...
@@ -22,7 +22,7 @@ DGL建议用户尽量减少边的特征维数。
linear = nn.Parameter(torch.FloatTensor(size=(node_feat_dim * 2, out_dim)))
linear = nn.Parameter(torch.FloatTensor(size=(node_feat_dim * 2, out_dim)))
def concat_message_function(edges):
def concat_message_function(edges):
return {'cat_feat': torch.cat([edges.src
.ndata
['feat'], edges.dst
.ndata
['feat']], dim=1)}
return {'cat_feat': torch.cat([edges.src['feat'], edges.dst['feat']], dim=1)}
g.apply_edges(concat_message_function)
g.apply_edges(concat_message_function)
g.edata['out'] = g.edata['cat_feat'] @ linear
g.edata['out'] = g.edata['cat_feat'] @ linear
...
...
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