MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / collate_fn

Function collate_fn

util/misc.py:353–357  ·  view source on GitHub ↗
(batch)

Source from the content-addressed store, hash-verified

351
352
353def collate_fn(batch):
354 # import pdb; pdb.set_trace()
355 batch = list(zip(*batch))
356 batch[0] = nested_tensor_from_tensor_list(batch[0])
357 return tuple(batch)
358
359
360def _max_by_axis(the_list):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected