When I run the following code, the second parameter of pixel2cam contains nan
cam_coords = pixel2cam(depth.squeeze(1), intrinsics.inverse()) # [B,3,H,W]

then, i added this code before pixel2cam
    if torch.any(torch.isnan(intrinsics.inverse())):
        print(intrinsics)
        print(intrinsics.inverse())
        print(torch.isnan(intrinsics.inverse()))
        print(torch.any(torch.isnan(intrinsics.inverse())))

but got output as follow image:

2021-04-20 21-04-59 的屏幕截图730×712 40.8 KB

This result looks very contradictory. After entering the if torch.any(torch.isnan(intrinsics.inverse())) , why thre output of torch.any(torch.isnan(intrinsics.inverse()) is still False?