MCPcopy Create free account
hub / github.com/WeChatCV/WeVisionOne / _max_by_axis

Function _max_by_axis

WeVisionOne/utils/misc.py:17–23  ·  view source on GitHub ↗
(the_list)

Source from the content-addressed store, hash-verified

15
16
17def _max_by_axis(the_list):
18 # type: (List[List[int]]) -> List[int]
19 maxes = the_list[0]
20 for sublist in the_list[1:]:
21 for index, item in enumerate(sublist):
22 maxes[index] = max(maxes[index], item)
23 return maxes
24
25
26class NestedTensor(object):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected