Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Anwar-Said committed Apr 27, 2023
1 parent 36c7a74 commit 04113c1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DGSD/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ def get_descriptor(self, graph, bins = 50, workers=1):
batches = np.array_split(nodes, workers)
emb = p.starmap(self.Generate_Embeddings, zip(batches, repeat(bins)))
embeddings = np.sum(np.array(emb),axis = 0)
p.close()
p.join()
return embeddings

def Generate_Embeddings(self, batch, nbins):
Expand Down

0 comments on commit 04113c1

Please sign in to comment.