Skip to content

Commit

Permalink
Change matmul from * to @
Browse files Browse the repository at this point in the history
  • Loading branch information
John-Tenet3 authored Jul 31, 2024
1 parent 45c3619 commit 38b6a85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inst2vec/inst2vec_vocabulary.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,12 +346,12 @@ def build_H_dictionary(D, skip_window, folder, filename, dictionary, stmts_cut_o
print('Load A mat from', A_file)
A = sparse.load_npz(A_file)
else:
A *= A1
A @= A1
if sys.getsizeof(A1) < 45e5:
print('Saving A mat to', A_file)
sparse.save_npz(A_file, A)
else:
A *= A1
A @= A1

A_context += A

Expand Down

0 comments on commit 38b6a85

Please sign in to comment.