File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1161,17 +1161,17 @@ cdef class usm_ndarray:
1161
1161
raise TypeError (
1162
1162
" `__dlpack__` expects `max_version` to be a "
1163
1163
" 2-tuple of integers `(major, minor)`, instead "
1164
- f" got {type( max_version) }"
1164
+ f" got {max_version}"
1165
1165
)
1166
1166
dpctl_dlpack_version = get_build_dlpack_version()
1167
1167
if max_version[0 ] >= dpctl_dlpack_version[0 ]:
1168
1168
# DLManagedTensorVersioned path
1169
1169
if dl_device is not None :
1170
1170
if not isinstance (dl_device, tuple ) or len (dl_device) != 2 :
1171
1171
raise TypeError (
1172
- " `__dlpack__` expects `dl_device` to be a "
1173
- " 2-tuple of `(device_type, device_id)`, instead "
1174
- f" got {type( dl_device) }"
1172
+ " `__dlpack__` expects `dl_device` to be a 2-tuple "
1173
+ " of `(device_type, device_id)`, instead "
1174
+ f" got {dl_device}"
1175
1175
)
1176
1176
if dl_device != self .__dlpack_device__():
1177
1177
if copy == False :
You can’t perform that action at this time.
0 commit comments