MCPcopy Create free account
hub / github.com/UX-Decoder/Semantic-SAM / _max_by_axis

Function _max_by_axis

semantic_sam/utils/misc.py:34–40  ·  view source on GitHub ↗
(the_list)

Source from the content-addressed store, hash-verified

32 return ious
33
34def _max_by_axis(the_list):
35 # type: (List[List[int]]) -> List[int]
36 maxes = the_list[0]
37 for sublist in the_list[1:]:
38 for index, item in enumerate(sublist):
39 maxes[index] = max(maxes[index], item)
40 return maxes
41
42class NestedTensor(object):
43 def __init__(self, tensors, mask: Optional[Tensor]):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected