Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions 4 dpctl/tensor/_elementwise_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def __call__(self, o1, o2, out=None, order="K"):
o1_dtype = _get_dtype(o1, sycl_dev)
o2_dtype = _get_dtype(o2, sycl_dev)
if not all(_validate_dtype(o) for o in (o1_dtype, o2_dtype)):
raise ValueError("Operands of unsupported types")
raise ValueError("Operands have unsupported data types")

o1_dtype, o2_dtype = _resolve_weak_types(o1_dtype, o2_dtype, sycl_dev)

Expand Down Expand Up @@ -498,7 +498,7 @@ def __call__(self, o1, o2, out=None, order="K"):
if out.shape != res_shape:
raise ValueError(
"The shape of input and output arrays are inconsistent. "
f"Expected output shape is {o1_shape}, got {out.shape}"
f"Expected output shape is {res_shape}, got {out.shape}"
)

if res_dt != out.dtype:
Expand Down
Morty Proxy This is a proxified and sanitized view of the page, visit original site.