(the_list)
| 298 | |
| 299 | |
| 300 | def _max_by_axis(the_list): |
| 301 | # type: (List[List[int]]) -> List[int] |
| 302 | maxes = the_list[0] |
| 303 | for sublist in the_list[1:]: |
| 304 | for index, item in enumerate(sublist): |
| 305 | maxes[index] = max(maxes[index], item) |
| 306 | return maxes |
| 307 | |
| 308 | |
| 309 | def nested_tensor_from_tensor_list(tensor_list: List[Tensor]): |
no outgoing calls
no test coverage detected