Qiao Zhang
65ef487a82
Allow jnp.nan_to_num handle integer types like numpy.
...
See current behavior difference wrt np.nan_to_num
```
>>> np.nan_to_num(np.array(1, dtype=np.int32))
1
>>> jnp.nan_to_num(jnp.array(1, dtype=jnp.int32))
ValueError: data type <class 'numpy.int32'> not inexact
```
PiperOrigin-RevId: 505735212
2023-01-30 10:37:17 -08:00
..
2023-01-30 10:37:17 -08:00
2023-01-25 10:54:31 -08:00
2023-01-30 00:24:30 -08:00
2022-12-14 15:07:04 -08:00
2023-01-27 14:27:30 -08:00
2022-12-14 15:07:04 -08:00
2022-09-22 12:27:19 -07:00
2022-12-14 15:07:04 -08:00
2023-01-20 12:43:59 -08:00
2022-12-14 15:07:04 -08:00
2023-01-27 07:24:55 +00:00
2023-01-20 19:04:46 +00:00
2023-01-09 09:11:50 -08:00
2022-12-16 21:00:14 -08:00
2022-09-22 12:27:19 -07:00
2022-09-22 12:27:19 -07:00
2023-01-12 22:58:31 -08:00
2022-09-22 12:27:19 -07:00
2022-10-20 14:37:21 -07:00
2022-10-20 14:37:21 -07:00
2022-12-29 03:00:32 -08:00
2022-09-22 12:27:19 -07:00
2022-12-14 15:07:04 -08:00
2022-09-22 12:27:19 -07:00
2022-09-22 17:36:56 -07:00
2022-09-22 12:27:19 -07:00
2022-09-22 12:27:19 -07:00
2022-12-14 15:07:04 -08:00
2022-12-14 15:07:04 -08:00
2022-09-22 12:27:19 -07:00
2022-12-16 21:00:14 -08:00
2022-12-21 18:52:01 -08:00
2022-11-15 12:41:41 -08:00
2022-12-14 15:07:04 -08:00
2022-12-14 15:07:04 -08:00
2021-01-13 10:26:35 -05:00
2022-12-14 15:07:04 -08:00
2022-12-14 15:07:04 -08:00
2022-12-14 15:07:04 -08:00
2022-12-14 15:07:04 -08:00
2022-12-14 15:07:04 -08:00
2022-12-14 15:07:04 -08:00
2023-01-26 01:12:06 +00:00