(B, Y, X, norm=False)
| 139 | return xyz |
| 140 | |
| 141 | def gridcloud2d(B, Y, X, norm=False): |
| 142 | # we want to sample for each location in the grid |
| 143 | grid_y, grid_x = meshgrid2d(B, Y, X, norm=norm) |
| 144 | x = torch.reshape(grid_x, [B, -1]) |
| 145 | y = torch.reshape(grid_y, [B, -1]) |
| 146 | # these are B x N |
| 147 | xy = torch.stack([x, y], dim=2) |
| 148 | # this is B x N x 2 |
| 149 | return xy |
| 150 | |
| 151 | def gridcloud3d_py(Z, Y, X): |
| 152 | # we want to sample for each location in the grid |
nothing calls this directly
no test coverage detected