Wrapper around torch.meshgrid to avoid warning messages about the introduced `indexing` argument. Reference: https://pytorch.org/docs/1.13/generated/torch.meshgrid.html
(
*tensors: Union[torch.Tensor, List[torch.Tensor]], indexing: Optional[str] = None
)
| 267 | |
| 268 | |
| 269 | def meshgrid( |
| 270 | *tensors: Union[torch.Tensor, List[torch.Tensor]], indexing: Optional[str] = None |
| 271 | ) -> Tuple[torch.Tensor, ...]: |
| 272 | """ |
| 273 | Wrapper around torch.meshgrid to avoid warning messages about the introduced `indexing` argument. |
| 274 | |
| 275 | Reference: https://pytorch.org/docs/1.13/generated/torch.meshgrid.html |
| 276 | """ |
| 277 | return torch.meshgrid(*tensors, indexing=indexing) |
| 278 | |
| 279 | |
| 280 | def id_tensor_storage(tensor: torch.Tensor) -> Tuple[torch.device, int, int]: |
no outgoing calls
no test coverage detected