MCPcopy Create free account
hub / github.com/EryiXie/PlaneRecNet / gather

Method gather

train.py:168–174  ·  view source on GitHub ↗
(self, outputs, output_device)

Source from the content-addressed store, hash-verified

166 [kwargs] * len(devices)
167
168 def gather(self, outputs, output_device):
169 out = {}
170
171 for k in outputs[0]:
172 out[k] = torch.stack([output[k].to(output_device) for output in outputs])
173
174 return out
175
176 @torch.no_grad()
177 def prepare_data(self, datum, devices:list=None, allocation:list=None):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected