Skip to content

Commit

Permalink
feat: delete not implemented error in convolutional module
Browse files Browse the repository at this point in the history
  • Loading branch information
Francisco Muñoz committed Jan 8, 2025
1 parent 80d9542 commit e8d4de5
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions ot/bregman/_convolutional.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,11 +246,6 @@ def _convolutional_barycenter2d_log(
A = list_to_array(A)

nx = get_backend(A)
if nx.__name__ in ("jax", "tf"):
raise NotImplementedError(
"Log-domain functions are not yet implemented"
" for Jax and TF. Use numpy or torch arrays instead."
)

n_hists, width, height = A.shape

Expand Down Expand Up @@ -483,11 +478,7 @@ def _convolutional_barycenter2d_debiased_log(
A = list_to_array(A)
n_hists, width, height = A.shape
nx = get_backend(A)
if nx.__name__ in ("jax", "tf"):
raise NotImplementedError(
"Log-domain functions are not yet implemented"
" for Jax and TF. Use numpy or torch arrays instead."
)

if weights is None:
weights = nx.ones((n_hists,), type_as=A) / n_hists
else:
Expand Down

0 comments on commit e8d4de5

Please sign in to comment.