Skip to content

Commit c3ade83

Browse files
authored
Merge pull request #5804 from FlorentinD/gs-weighted-embedding-generation-bug
Fix bug in weighted GraphSage parallel embedding generation
2 parents ae24f31 + 6420cf8 commit c3ade83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

algo/src/main/java/org/neo4j/gds/embeddings/graphsage/GraphSageEmbeddingsGenerator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public HugeObjectArray<double[]> makeEmbeddings(
7171
var tasks = PartitionUtils.rangePartitionWithBatchSize(
7272
graph.nodeCount(),
7373
batchSize,
74-
partition -> createEmbeddings(graph, partition, features, result)
74+
partition -> createEmbeddings(graph.concurrentCopy(), partition, features, result)
7575
);
7676

7777
RunWithConcurrency.builder()

0 commit comments

Comments
 (0)