Skip to content

Commit 3b0eb60

Browse files
Address the rest remarks
1 parent 92d27d8 commit 3b0eb60

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dpnp/backend/kernels/elementwise_functions/interpolate.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ sycl::event interpolate_impl(sycl::queue &q,
4747
const std::size_t xp_size,
4848
const std::vector<sycl::event> &depends)
4949
{
50+
// Selected over the work-group version
51+
// due to simpler execution and slightly better performance.
5052
return q.submit([&](sycl::handler &h) {
5153
h.depends_on(depends);
5254
h.parallel_for(sycl::range<1>(n), [=](sycl::id<1> i) {

dpnp/dpnp_iface_mathematical.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2919,8 +2919,6 @@ def interp(x, xp, fp, left=None, right=None, period=None):
29192919
fp = fp[asort_xp]
29202920
xp = dpnp.concatenate((xp[-1:] - period, xp, xp[0:1] + period))
29212921
fp = dpnp.concatenate((fp[-1:], fp, fp[0:1]))
2922-
assert xp.flags.c_contiguous
2923-
assert fp.flags.c_contiguous
29242922

29252923
idx = dpnp.searchsorted(xp, x, side="right")
29262924
left_usm = _validate_interp_param(left, "left", exec_q, usm_type, fp.dtype)

0 commit comments

Comments
 (0)