Skip to content

Commit

Permalink
[doc] fix module typo (dmlc#3734)
Browse files Browse the repository at this point in the history
Co-authored-by: Mufei Li <[email protected]>
  • Loading branch information
Rhett-Ying and mufeili authored Feb 16, 2022
1 parent 97a6d74 commit 42f8c8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/dgl/nn/pytorch/link/transr.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class TransR(nn.Module):
>>> num_rels = 3
>>> feats = 4
>>> scorer = TransE(num_rels=num_rels, rfeats=2, nfeats=feats)
>>> scorer = TransR(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)
Expand Down

0 comments on commit 42f8c8f

Please sign in to comment.