Skip to content

Commit f0d3b5a

Browse files
Merge include-dpctl-tensor into update_changelog_tensor
2 parents 4a94fd7 + 125c913 commit f0d3b5a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

dpnp/tests/tensor/elementwise/test_exp.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ def test_exp_real_contig(dtype):
7878
assert_allclose(dpt.asnumpy(Z), np.repeat(Ynp, n_rep), atol=tol, rtol=tol)
7979

8080

81+
@pytest.mark.filterwarnings("ignore:overflow encountered:RuntimeWarning")
8182
@pytest.mark.parametrize("dtype", ["c8", "c16"])
8283
def test_exp_complex_contig(dtype):
8384
q = get_queue_or_skip()

dpnp/tests/tensor/test_usm_ndarray_dlpack.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,9 @@ def test_copy_via_host_gh_1789():
783783
get_queue_or_skip()
784784
x_np = np.ones((10, 10), dtype="i4")
785785
# strides are no longer multiple of itemsize
786-
x_np.strides = (x_np.strides[0] - 1, x_np.strides[1])
786+
x_np = np.lib.stride_tricks.as_strided(
787+
x_np, shape=x_np.shape, strides=(x_np.strides[0] - 1, x_np.strides[1])
788+
)
787789
with pytest.raises(BufferError):
788790
dpt.from_dlpack(x_np)
789791
with pytest.raises(BufferError):

0 commit comments

Comments
 (0)