MCPcopy 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_baryFunction · 0.80
test_solve_last_stepFunction · 0.80
test_solve_detachFunction · 0.80
test_solve_envelopeFunction · 0.80
test_sinkhorn2_gradientsFunction · 0.80
test_gradients_backendsFunction · 0.80
test_emd2_gradientsFunction · 0.80
test_TFGW_optimFunction · 0.80

Calls

no outgoing calls