(the_list)
| 358 | |
| 359 | |
| 360 | def _max_by_axis(the_list): |
| 361 | # type: (List[List[int]]) -> List[int] |
| 362 | maxes = the_list[0] |
| 363 | for sublist in the_list[1:]: |
| 364 | for index, item in enumerate(sublist): |
| 365 | maxes[index] = max(maxes[index], item) |
| 366 | return maxes |
| 367 | |
| 368 | |
| 369 | class NestedTensor(object): |
no outgoing calls
no test coverage detected