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
34d64754
"git@developer.sourcefind.cn:OpenDAS/vision.git" did not exist on "738fa133eeb362ca4ea8b9abb249f8f67bc13e27"
Unverified
Commit
34d64754
authored
Mar 02, 2023
by
czkkkkkk
Committed by
GitHub
Mar 02, 2023
Browse files
[Doc] Fix typos in minibatch-edge.rst (#5308)
parent
325e795a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
docs/source/guide/minibatch-edge.rst
docs/source/guide/minibatch-edge.rst
+2
-2
docs/source/guide_cn/minibatch-edge.rst
docs/source/guide_cn/minibatch-edge.rst
+2
-2
docs/source/guide_ko/minibatch-edge.rst
docs/source/guide_ko/minibatch-edge.rst
+2
-2
No files found.
docs/source/guide/minibatch-edge.rst
View file @
34d64754
...
@@ -130,7 +130,7 @@ layer.
...
@@ -130,7 +130,7 @@ layer.
self
.
W
=
nn
.
Linear
(
2
*
in_features
,
num_classes
)
self
.
W
=
nn
.
Linear
(
2
*
in_features
,
num_classes
)
def
apply_edges
(
self
,
edges
):
def
apply_edges
(
self
,
edges
):
data
=
torch
.
cat
([
edges
.
src
[
'x'
],
edges
.
dst
[
'x'
]])
data
=
torch
.
cat
([
edges
.
src
[
'x'
],
edges
.
dst
[
'x'
]]
,
1
)
return
{
'score'
:
self
.
W
(
data
)}
return
{
'score'
:
self
.
W
(
data
)}
def
forward
(
self
,
edge_subgraph
,
x
):
def
forward
(
self
,
edge_subgraph
,
x
):
...
@@ -222,7 +222,7 @@ over the edge types for :meth:`~dgl.DGLGraph.apply_edges`.
...
@@ -222,7 +222,7 @@ over the edge types for :meth:`~dgl.DGLGraph.apply_edges`.
self
.
W
=
nn
.
Linear
(
2
*
in_features
,
num_classes
)
self
.
W
=
nn
.
Linear
(
2
*
in_features
,
num_classes
)
def
apply_edges
(
self
,
edges
):
def
apply_edges
(
self
,
edges
):
data
=
torch
.
cat
([
edges
.
src
[
'x'
],
edges
.
dst
[
'x'
]])
data
=
torch
.
cat
([
edges
.
src
[
'x'
],
edges
.
dst
[
'x'
]]
,
1
)
return
{
'score'
:
self
.
W
(
data
)}
return
{
'score'
:
self
.
W
(
data
)}
def
forward
(
self
,
edge_subgraph
,
x
):
def
forward
(
self
,
edge_subgraph
,
x
):
...
...
docs/source/guide_cn/minibatch-edge.rst
View file @
34d64754
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
self
.
W
=
nn
.
Linear
(
2
*
in_features
,
num_classes
)
self
.
W
=
nn
.
Linear
(
2
*
in_features
,
num_classes
)
def
apply_edges
(
self
,
edges
):
def
apply_edges
(
self
,
edges
):
data
=
torch
.
cat
([
edges
.
src
[
'x'
],
edges
.
dst
[
'x'
]])
data
=
torch
.
cat
([
edges
.
src
[
'x'
],
edges
.
dst
[
'x'
]]
,
1
)
return
{
'score'
:
self
.
W
(
data
)}
return
{
'score'
:
self
.
W
(
data
)}
def
forward
(
self
,
edge_subgraph
,
x
):
def
forward
(
self
,
edge_subgraph
,
x
):
...
@@ -191,7 +191,7 @@ DGL保证边子图中的节点与生成的块列表中最后一个块的输出
...
@@ -191,7 +191,7 @@ DGL保证边子图中的节点与生成的块列表中最后一个块的输出
self
.
W
=
nn
.
Linear
(
2
*
in_features
,
num_classes
)
self
.
W
=
nn
.
Linear
(
2
*
in_features
,
num_classes
)
def
apply_edges
(
self
,
edges
):
def
apply_edges
(
self
,
edges
):
data
=
torch
.
cat
([
edges
.
src
[
'x'
],
edges
.
dst
[
'x'
]])
data
=
torch
.
cat
([
edges
.
src
[
'x'
],
edges
.
dst
[
'x'
]]
,
1
)
return
{
'score'
:
self
.
W
(
data
)}
return
{
'score'
:
self
.
W
(
data
)}
def
forward
(
self
,
edge_subgraph
,
x
):
def
forward
(
self
,
edge_subgraph
,
x
):
...
...
docs/source/guide_ko/minibatch-edge.rst
View file @
34d64754
...
@@ -97,7 +97,7 @@
...
@@ -97,7 +97,7 @@
self
.
W
=
nn
.
Linear
(
2
*
in_features
,
num_classes
)
self
.
W
=
nn
.
Linear
(
2
*
in_features
,
num_classes
)
def
apply_edges
(
self
,
edges
):
def
apply_edges
(
self
,
edges
):
data
=
torch
.
cat
([
edges
.
src
[
'x'
],
edges
.
dst
[
'x'
]])
data
=
torch
.
cat
([
edges
.
src
[
'x'
],
edges
.
dst
[
'x'
]]
,
1
)
return
{
'score'
:
self
.
W
(
data
)}
return
{
'score'
:
self
.
W
(
data
)}
def
forward
(
self
,
edge_subgraph
,
x
):
def
forward
(
self
,
edge_subgraph
,
x
):
...
@@ -179,7 +179,7 @@ Heterogeneous 그래프들의 노드 representation들을 계산하는 모델은
...
@@ -179,7 +179,7 @@ Heterogeneous 그래프들의 노드 representation들을 계산하는 모델은
self
.
W
=
nn
.
Linear
(
2
*
in_features
,
num_classes
)
self
.
W
=
nn
.
Linear
(
2
*
in_features
,
num_classes
)
def
apply_edges
(
self
,
edges
):
def
apply_edges
(
self
,
edges
):
data
=
torch
.
cat
([
edges
.
src
[
'x'
],
edges
.
dst
[
'x'
]])
data
=
torch
.
cat
([
edges
.
src
[
'x'
],
edges
.
dst
[
'x'
]]
,
1
)
return
{
'score'
:
self
.
W
(
data
)}
return
{
'score'
:
self
.
W
(
data
)}
def
forward
(
self
,
edge_subgraph
,
x
):
def
forward
(
self
,
edge_subgraph
,
x
):
...
...
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