Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
268
def
collate_fn(batch):
269
batch = list(zip(*batch))
270
batch[0] = nested_tensor_from_tensor_list(batch[0])
271
return
tuple(batch)
272
273
274
def
_max_by_axis(the_list):
Callers
nothing calls this directly
Calls
1
nested_tensor_from_tensor_list
Function · 0.85
Tested by
no test coverage detected