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-17 11:05:45 -07:00
2022-04-19 13:18:00 -07:00
2022-03-08 09:37:33 -05:00
2022-04-14 10:55:00 -07:00
2021-12-06 15:13:35 -08:00