[Misc] Call ndarray.tobytes() directly instead of ndarray.data.tobytes() (#18347)

Signed-off-by: Lukas Geiger <lukas.geiger94@gmail.com>
This commit is contained in:
Lukas Geiger
2025-05-22 17:00:13 +01:00
committed by GitHub
parent cb506ecb5a
commit 54631f8262

View File

@@ -43,7 +43,7 @@ class MultiModalHasher:
"ndarray", {
"dtype": obj.dtype.str,
"shape": obj.shape,
"data": obj.data.tobytes(),
"data": obj.tobytes(),
})
logger.warning(