MCPcopy Create free account
hub / github.com/OpenDriveLab/ReSim / collate_fn

Function collate_fn

SwissArmyTransformer/examples/yolos/util/misc.py:268–271  ·  view source on GitHub ↗
(batch)

Source from the content-addressed store, hash-verified

266
267
268def collate_fn(batch):
269 batch = list(zip(*batch))
270 batch[0] = nested_tensor_from_tensor_list(batch[0])
271 return tuple(batch)
272
273
274def _max_by_axis(the_list):

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected