Skip to content

Commit

Permalink
[BugFix][FFI] Add a missing default for datatype lanes (apache#16649)
Browse files Browse the repository at this point in the history
A default value for lanes was unintentionally removed in apache#16612, this
PR fixes this which in turn fixes the test failure seen in
`test_tensor_dtype_lanes` in CI.
  • Loading branch information
lhutton1 authored and Lunderberg committed Mar 12, 2024
1 parent 39d5d4b commit 2483ddc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/tvm/_ffi/runtime_ctypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ def __init__(self, type_str):
self.lanes = ctypes.c_uint16(-int(arr[2]))
elif len(arr) > 1:
self.lanes = ctypes.c_uint16(int(arr[1]))
else:
self.lanes = 1
bits = 32

if head.startswith("int"):
Expand Down

0 comments on commit 2483ddc

Please sign in to comment.