Skip to content

Commit b3faa04

Browse files
authored
Update runtime_ctypes.py
1 parent e1d3c0f commit b3faa04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/tvm/_ffi/runtime_ctypes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ def itemsize(self):
224224
lanes_as_int = ctypes.c_int16(self.lanes).value
225225
if lanes_as_int < 0:
226226
raise ValueError("Cannot determine itemsize for scalable vector types")
227-
return self.bits * self.lanes // 8
227+
return (self.bits * self.lanes + 7) // 8
228228

229229

230230
if ml_dtypes is not None:

0 commit comments

Comments
 (0)