MCPcopy Create free account
hub / github.com/OpenGVLab/HumanBench / _max_by_axis

Function _max_by_axis

PATH/core/utils.py:743–749  ·  view source on GitHub ↗
(the_list)

Source from the content-addressed store, hash-verified

741 print(f"[rank {dist.get_rank()}]", *args, **kwargs)
742
743def _max_by_axis(the_list):
744 # type: (List[List[int]]) -> List[int]
745 maxes = the_list[0]
746 for sublist in the_list[1:]:
747 for index, item in enumerate(sublist):
748 maxes[index] = max(maxes[index], item)
749 return maxes
750
751
752class NestedTensor(object):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected