tf.linalg.svd([inf, -inf]) throws internal error logs to the console, and generates inconsistent results on different dtypes.
@QuantumCoder4,
Looks like this is a duplicate of the issue [#61955](https://github.com/tensorflow/tensorflow/issues/61955). Could you please close this issue, since it is already being tracked there? Thank you!
 Thanks for reply. I have checked the issue #61955. Although the problem seems to be not exactly the same, I will be happy if this issue can also be tracked there. Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/63852">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/63852">No</a>

### Issue type

Bug

### Have you reproduced the bug with TensorFlow Nightly?

Yes

### Source

binary

### TensorFlow version

tf 2.15.0

### Custom code

Yes

### OS platform and distribution

Linux-5.14.0-362.18.1.el9_3.x86_64-x86_64-with-glibc2.34

### Mobile device

AlmaLinux 9

### Python version

3.9

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

An internal error log was thrown to the console.
Also, we found that API generates inconsistent results on different input dtypes.
The same error log has appeared in #56204, but I am not sure whether we are talking about the same problem.


### Standalone code to reproduce the issue

```shell
import tensorflow as tf
import numpy as np

input = tf.constant([[np.inf, -np.inf]], dtype=tf.complex64)
out = tf.linalg.svd(input, full_matrices=False, compute_uv=False) # 0

input = tf.constant([[np.inf, -np.inf]], dtype=tf.float64)
out = tf.linalg.svd(input, full_matrices=False, compute_uv=False) # nan
```


### Relevant log output

```shell
2024-03-18 02:28:14.593059: E ./tensorflow/core/kernels/linalg/svd_op_impl.h:110] Eigen::BDCSVD failed with error code 3
```
