Is there an internal Pytorch procedure for detecting NaN in tensors? Tensorflow has tf.is_nan and tf.check_numerics ... Does Pytorch have something like this? I could not find something like this in the docs ...
I look specifically at the internal Pytorch procedure, as I would like this to happen both on the GPU and on the processor. This excludes numpy-based solutions (e.g. np.isnan(sometensor.numpy()).any() ) ...
source share