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

Function _max_by_axis

util/misc.py:360–366  ·  view source on GitHub ↗
(the_list)

Source from the content-addressed store, hash-verified

358
359
360def _max_by_axis(the_list):
361 # type: (List[List[int]]) -> List[int]
362 maxes = the_list[0]
363 for sublist in the_list[1:]:
364 for index, item in enumerate(sublist):
365 maxes[index] = max(maxes[index], item)
366 return maxes
367
368
369class NestedTensor(object):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected