You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The target ordering used to be based on absolute values of the first
vector of strides, now it uses lexicographic ordering of tuples of
absolute values of all strides involved.
This enables iteration space reduction for examples where all strides
in the first vector are all zero, like in the example arising from
```
dpctl.tensor.full((2,3,4,), dpctl.tensor.asarray(1))
```
The following two invocations show that iteration space used is 1d:
```
onetrace -d -v --demangle python -c "import dpctl.tensor as dpt; x = dpt.ones((30, 40, 50), dtype='i4'); y = dpt.empty_like(x, dtype='f4'); print((x.flags, y.flags)); y[:] = x"
onetrace -d -v --demangle python -c "import dpctl.tensor._tensor_impl as ti, dpctl.tensor as dpt; dpt.full((2,3,4), dpt.asarray(1, dtype='f4'))"
```
0 commit comments