mirror of
https://github.com/ROCm/jax.git
synced 2025-04-19 05:16:06 +00:00
Update Common_Gotchas_in_JAX.ipynb
Clarify that the index is clamped to the bounds of the array when accessing out of bounds.
This commit is contained in:
parent
d388b6260b
commit
b357005e60
@ -603,7 +603,7 @@
|
||||
"id": "eoXrGARWypdR"
|
||||
},
|
||||
"source": [
|
||||
"However, raising an error on other accelerators can be more difficult. Therefore, JAX does not raise an error and instead returns the last value in the array. "
|
||||
"However, raising an error on other accelerators can be more difficult. Therefore, JAX does not raise an error, instead the index is clamped to the bounds of the array, meaning that for this example the last value of the array will be returned. "
|
||||
]
|
||||
},
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user