Skip to content

Commit f2baeae

Browse files
lgeigerminpeter
authored andcommitted
[Misc] Call ndarray.tobytes() directly instead of ndarray.data.tobytes() (vllm-project#18347)
Signed-off-by: Lukas Geiger <lukas.geiger94@gmail.com> Signed-off-by: minpeter <kali2005611@gmail.com>
1 parent bd38df4 commit f2baeae

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)