(self, h, w)
| 683 | return c |
| 684 | |
| 685 | def meshgrid(self, h, w): |
| 686 | y = torch.arange(0, h).view(h, 1, 1).repeat(1, w, 1) |
| 687 | x = torch.arange(0, w).view(1, w, 1).repeat(h, 1, 1) |
| 688 | |
| 689 | arr = torch.cat([y, x], dim=-1) |
| 690 | return arr |
| 691 | |
| 692 | def delta_border(self, h, w): |
| 693 | """ |
no outgoing calls
no test coverage detected