summaryrefslogtreecommitdiff
path: root/ot
diff options
context:
space:
mode:
Diffstat (limited to 'ot')
-rw-r--r--ot/backend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ot/backend.py b/ot/backend.py
index 58b652b..6e0bc3d 100644
--- a/ot/backend.py
+++ b/ot/backend.py
@@ -1397,7 +1397,7 @@ class TorchBackend(Backend):
def set_gradients(self, val, inputs, grads):
- Func = self.ValFunction()
+ Func = self.ValFunction
res = Func.apply(val, grads, *inputs)