Skip to content
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
3 changes: 2 additions & 1 deletion onedal/datatypes/sycl_usm/data_conversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ py::dict construct_sua_iface(const dal::table& input) {
// for constructing DPCTL usm_ndarray or DPNP ndarray with zero-copy on python level.
const auto kind = input.get_kind();
if (kind != dal::homogen_table::kind())
report_problem_to_sua_iface(": only homogen tables are supported");
throw py::attribute_error(
"__sycl_usm_array_interface__ not available: only homogen tables are supported");

const auto& homogen_input = reinterpret_cast<const dal::homogen_table&>(input);

Expand Down
Loading