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

Function _max_by_axis

SwissArmyTransformer/examples/yolos/util/misc.py:274–280  ·  view source on GitHub ↗
(the_list)

Source from the content-addressed store, hash-verified

272
273
274def _max_by_axis(the_list):
275 # type: (List[List[int]]) -> List[int]
276 maxes = the_list[0]
277 for sublist in the_list[1:]:
278 for index, item in enumerate(sublist):
279 maxes[index] = max(maxes[index], item)
280 return maxes
281
282
283class NestedTensor(object):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected