Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PythonOT/POT
/ backward
Method
backward
ot/backend.py:1951–1953 ·
view source on GitHub ↗
(ctx, grad_output)
Source
from the content-addressed store, hash-verified
1949
1950
@staticmethod
1951
def
backward(ctx, grad_output):
1952
# the gradients are grad
1953
return
(None, None) + tuple(g * grad_output
for
g in ctx.grads)
1954
1955
self.ValFunction = ValFunction
1956
Callers
15
ground_bary
Function · 0.80
test_partial_wasserstein2_gradient
Function · 0.80
test_entropic_partial_wasserstein_gradient
Function · 0.80
test_solve_last_step
Function · 0.80
test_solve_detach
Function · 0.80
test_solve_envelope
Function · 0.80
test_sinkhorn2_gradients
Function · 0.80
test_empirical_sinkhorn_divergence_gradient
Function · 0.80
test_gradients_backends
Function · 0.80
test_gradient_gmm_ot_loss_pytorch
Function · 0.80
test_emd2_gradients
Function · 0.80
test_TFGW_optim
Function · 0.80
Calls
no outgoing calls
Tested by
15
test_partial_wasserstein2_gradient
Function · 0.64
test_entropic_partial_wasserstein_gradient
Function · 0.64
test_solve_last_step
Function · 0.64
test_solve_detach
Function · 0.64
test_solve_envelope
Function · 0.64
test_sinkhorn2_gradients
Function · 0.64
test_empirical_sinkhorn_divergence_gradient
Function · 0.64
test_gradients_backends
Function · 0.64
test_gradient_gmm_ot_loss_pytorch
Function · 0.64
test_emd2_gradients
Function · 0.64
test_TFGW_optim
Function · 0.64
test_TFGW_variants
Function · 0.64