Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
BTS-MTGNN
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhlj
BTS-MTGNN
Commits
802c3ca2
Commit
802c3ca2
authored
Aug 24, 2024
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
first commit
parent
34f10818
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
starrygl/sample/part_utils/transformer_from_speed.py
+2
-2
No files found.
starrygl/sample/part_utils/transformer_from_speed.py
View file @
802c3ca2
...
...
@@ -136,7 +136,7 @@ def load_from_shared_node_partition(data,node_i,shared_node,sample_add_rev = Tru
test_mask
=
(
torch
.
from_numpy
(
np
.
array
(
df
.
ext_roll
.
values
))
==
2
)
num_node
=
max
(
src
.
max
()
.
item
(),
dst
.
max
()
.
item
())
+
1
dim_feats
=
[
0
,
0
,
0
,
0
,
0
,
0
,
0
,
0
]
if
dist
.
get_rank
()
==
0
:
if
ctx
.
local_rank
==
0
:
_node_feats
,
_edge_feats
=
load_feat
(
data
,
num_node
,
src
.
shape
[
0
],
172
,
172
)
if
_node_feats
is
not
None
:
dim_feats
[
0
]
=
_node_feats
.
shape
[
0
]
...
...
@@ -165,7 +165,7 @@ def load_from_shared_node_partition(data,node_i,shared_node,sample_add_rev = Tru
torch
.
distributed
.
broadcast_object_list
(
dim_feats
,
src
=
0
)
print
(
'dist rank is {} after node feats defination:'
.
format
(
torch
.
distributed
.
get_rank
()))
print
()
if
dist
.
get_rank
()
>
0
:
if
ctx
.
local_rank
>
0
:
node_feats
=
None
edge_feats
=
None
if
dim_feats
[
6
]
==
1
:
...
...
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