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 f7667f3 commit 687ede6Copy full SHA for 687ede6
1 file changed
src/blosc2/proxy.py
@@ -671,7 +671,9 @@ def __getitem__(self, item: slice | list[slice]) -> np.ndarray:
671
if not hasattr(out, "shape") or out.shape == ():
672
return out
673
else:
674
- return np.asarray(out) # avoids copy for PyTorch at least
+ # avoids copy for PyTorch (JAX/Tensorflow will always copy,
675
+ # no easy way around it)
676
+ return np.asarray(out)
677
678
679
def as_simpleproxy(*arrs: Sequence[blosc2.Array]) -> tuple[SimpleProxy | blosc2.Operand]:
0 commit comments