Hi guys. Are there any equivalent function for numpy.ma.compress_rowcols in PyTorch where it can suppress the rows and/or columns of a 2-D array that contain NAN value
You could create mask tensors using torch.isnan, torch.isinf, and torch.isfinite.
Depending on the desired output, you could check the results in specific dimensions or apply the mask directly.