Skip to content

Commit

Permalink
Update ot/lp/dmmot.py
Browse files Browse the repository at this point in the history
Store input variable instead of copying it
  • Loading branch information
rflamary authored Aug 3, 2023
1 parent b370202 commit 24a69c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ot/lp/dmmot.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ def dmmot_monge_1dgrid_loss(A, verbose=False, log=False):
"""

nx = get_backend(A)
A_copy = nx.copy(A)
A_copy = A
A = nx.to_numpy(A)

AA = [np.copy(A[:, j]) for j in range(A.shape[1])]
Expand Down

0 comments on commit 24a69c0

Please sign in to comment.