(the_list)
| 741 | print(f"[rank {dist.get_rank()}]", *args, **kwargs) |
| 742 | |
| 743 | def _max_by_axis(the_list): |
| 744 | # type: (List[List[int]]) -> List[int] |
| 745 | maxes = the_list[0] |
| 746 | for sublist in the_list[1:]: |
| 747 | for index, item in enumerate(sublist): |
| 748 | maxes[index] = max(maxes[index], item) |
| 749 | return maxes |
| 750 | |
| 751 | |
| 752 | class NestedTensor(object): |
no outgoing calls
no test coverage detected