(the_list)
| 15 | |
| 16 | |
| 17 | def _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 | |
| 26 | class NestedTensor(object): |
no outgoing calls
no test coverage detected