isNan fix because CudaTensor:ne doesnt work with CudaTensor