Skip to content

Commit 6c629a8

Browse files
Merge pull request #1092 from IntelPython/fix-get-offsets
get_minmax_offsets should always return data relative to data ptr
2 parents b45e174 + a727866 commit 6c629a8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

dpctl/apis/include/dpctl4pybind11.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -943,8 +943,6 @@ class usm_ndarray : public py::object
943943
}
944944
}
945945
else {
946-
offset_min = api.UsmNDArray_GetOffset_(raw_ar);
947-
offset_max = offset_min;
948946
for (int i = 0; i < nd; ++i) {
949947
py::ssize_t delta = strides[i] * (shape[i] - 1);
950948
if (strides[i] > 0) {

0 commit comments

Comments
 (0)