Peter Hawkins
0b470361da
Change the default jnp.take mode to "fill".
...
Previously, `jnp.take` defaulted to clamping out-of-bounds indices into range. Now, `jnp.take` returns invalid values (e.g., NaN) for out-of-bounds indices. This change attempts to prevent latent bugs caused by inadvertent out-of-bounds indices.
The previous behavior can be approximated using the "clip" or "wrap" fill modes.
PiperOrigin-RevId: 445130143
2022-04-28 06:01:56 -07:00
..
2022-03-30 06:05:30 -07:00
2022-04-28 06:01:56 -07:00
2022-04-21 11:48:44 -07:00
2022-04-20 09:09:19 -04:00
2022-04-28 06:01:56 -07:00
2022-03-17 11:05:45 -07:00
2022-04-27 06:27:09 -07:00
2022-02-17 15:59:24 +09:00
2020-10-16 17:04:25 -04:00
2022-04-24 14:28:33 -07:00
2022-04-18 08:28:35 -07:00
2022-04-26 12:31:08 -07:00
2022-04-26 12:31:08 -07:00
2022-04-26 13:01:01 -07:00
2022-04-19 15:06:00 +01:00
2022-04-18 16:39:34 -07:00
2022-04-13 22:51:36 -07:00
2022-01-11 17:55:08 -08:00
2022-04-18 08:28:35 -07:00
2022-04-19 13:18:00 -07:00
2022-04-18 08:28:35 -07:00
2022-04-04 12:18:43 -07:00
2022-04-25 17:44:56 +01:00
2022-02-17 16:10:07 -05:00
2022-04-13 13:34:00 -04:00
2022-04-20 08:44:49 -07:00
2021-11-24 07:48:29 -08:00
2022-03-08 09:37:33 -05:00
2022-04-14 10:55:00 -07:00
2021-07-22 14:01:28 -07:00
2022-02-12 14:15:28 -08:00
2022-04-25 09:16:12 -07:00
2021-12-06 15:13:35 -08:00
2022-04-04 14:43:39 -07:00
2022-04-18 08:28:35 -07:00
2022-03-04 10:33:03 -05:00
2022-04-13 10:18:25 -07:00
2022-04-21 13:44:12 -07:00
2022-03-04 10:33:03 -05:00
2022-04-14 16:09:47 -07:00
2022-04-14 13:41:05 -07:00