Skip to content

Commit 83c721b

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 233470d commit 83c721b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pydra/utils/hash.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -585,6 +585,7 @@ def bytes_repr_numpy(obj: numpy.ndarray, cache: Cache) -> Iterator[bytes]:
585585
else:
586586
yield obj.tobytes(order="C")
587587

588+
588589
if HAVE_PYTORCH:
589590

590591
@register_serializer(torch.Tensor)
@@ -608,4 +609,5 @@ def bytes_repr_pandas(obj: pandas.DataFrame, cache: Cache) -> Iterator[bytes]:
608609
yield f"{obj.__class__.__module__}{obj.__class__.__name__}:".encode()
609610
yield from bytes_repr_numpy(obj.to_numpy(), cache)
610611

612+
611613
NUMPY_CHUNK_LEN = 8192

0 commit comments

Comments
 (0)