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
8768fe6f
Commit
8768fe6f
authored
Dec 22, 2023
by
Wenjie Huang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try pyg metis
parent
09c175e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
0 deletions
+1
-0
starrygl/utils/partition.py
+1
-0
No files found.
starrygl/utils/partition.py
View file @
8768fe6f
...
@@ -33,6 +33,7 @@ def metis_partition(
...
@@ -33,6 +33,7 @@ def metis_partition(
rowptr
,
col
,
value
=
adj_t
.
coalesce
()
.
to_symmetric
()
.
csr
()
rowptr
,
col
,
value
=
adj_t
.
coalesce
()
.
to_symmetric
()
.
csr
()
node_parts
=
starrygl
.
ops
.
metis_partition
(
node_parts
=
starrygl
.
ops
.
metis_partition
(
rowptr
,
col
,
value
,
node_weight
,
node_sizes
,
num_parts
,
recursive
,
min_edge_cut
)
rowptr
,
col
,
value
,
node_weight
,
node_sizes
,
num_parts
,
recursive
,
min_edge_cut
)
# node_parts = torch.ops.torch_sparse.partition(rowptr, col, None, num_parts, num_parts < 8)
return
node_parts
return
node_parts
def
mt_metis_partition
(
def
mt_metis_partition
(
...
...
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