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
42f8c8f3
Unverified
Commit
42f8c8f3
authored
Feb 16, 2022
by
Rhett Ying
Committed by
GitHub
Feb 16, 2022
Browse files
[doc] fix module typo (#3734)
Co-authored-by:
Mufei Li
<
mufeili1996@gmail.com
>
parent
97a6d740
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/dgl/nn/pytorch/link/transr.py
python/dgl/nn/pytorch/link/transr.py
+1
-1
No files found.
python/dgl/nn/pytorch/link/transr.py
View file @
42f8c8f3
...
...
@@ -50,7 +50,7 @@ class TransR(nn.Module):
>>> num_rels = 3
>>> feats = 4
>>> scorer = Trans
E
(num_rels=num_rels, rfeats=2, nfeats=feats)
>>> scorer = Trans
R
(num_rels=num_rels, rfeats=2, nfeats=feats)
>>> g = dgl.rand_graph(num_nodes=num_nodes, num_edges=num_edges)
>>> src, dst = g.edges()
>>> h = th.randn(num_nodes, feats)
...
...
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