justheuristic %!s(int64=5) %!d(string=hai) anos
pai
achega
f1589d5653
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tesseract/client/moe.py

+ 1 - 1
tesseract/client/moe.py

@@ -84,7 +84,7 @@ class RemoteMixtureOfExperts(nn.Module):
             for i in range(len(input))
         )
 
-        averaged_outputs_flat = map_with_parallel_backward(_RemoteMoECall, *batch_jobs_args)
+        averaged_outputs_flat = map(torch.cat, map_with_parallel_backward(_RemoteMoECall, *batch_jobs_args)
         return nested_pack(averaged_outputs_flat, self.outputs_schema)
 
     def beam_search(self, grid_scores: List[torch.Tensor], k_best: int, **kwargs) -> List[List[RemoteExpert]]: