Skip to content

Commit 544b760

Browse files
committed
Call ndarray.tobytes() directly instead of ndarray.data.tobytes()
Signed-off-by: Lukas Geiger <[email protected]>
1 parent d637b96 commit 544b760

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm/multimodal/hasher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def serialize_item(cls, obj: object) -> bytes:
4343
"ndarray", {
4444
"dtype": obj.dtype.str,
4545
"shape": obj.shape,
46-
"data": obj.data.tobytes(),
46+
"data": obj.tobytes(),
4747
})
4848

4949
logger.warning(

0 commit comments

Comments
 (0)