(the_list)
| 32 | return ious |
| 33 | |
| 34 | def _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 | |
| 42 | class NestedTensor(object): |
| 43 | def __init__(self, tensors, mask: Optional[Tensor]): |
no outgoing calls
no test coverage detected