<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def result(self):
 """ Concatenate accumulated tensors """

        return {k: torch.stack(v) for k, v in self.accumulants.items()}