We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae0bf1f commit baf6880Copy full SHA for baf6880
src/array_api_extra/_lib/_testing.py
@@ -103,9 +103,7 @@ def _check_ns_shape_dtype(
103
104
def _is_materializable(x: Array) -> bool:
105
"""
106
- Check if the array is materializable, e.g. `as_numpy_array` can be called on it
107
- and one can assume that `__dlpack__` will succeed (if implemented, and given a
108
- compatible device).
+ Return True if you can call `as_numpy_array(x)`; False otherwise.
109
110
# Important: here we assume that we're not tracing -
111
# e.g. we're not inside `jax.jit`` nor `cupy.cuda.Stream.begin_capture`.
0 commit comments