justheuristic 5 år sedan
förälder
incheckning
2ec9f35d7e
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      hivemind/utils/autograd.py

+ 1 - 1
hivemind/utils/autograd.py

@@ -94,4 +94,4 @@ class _ParallelApplyFunction(torch.autograd.Function):
         futures = [run_in_background(run_isolated_backward, func, context, *grads)
                    for context, grads in zip(contexts, grad_outputs_per_call)]
         flat_grads_wrt_input = tuple(grad for future in futures for grad in future.result())
-        return None, None, None, None, *flat_grads_wrt_input
+        return (None, None, None, None, *flat_grads_wrt_input)