Skip to content

Commit

Permalink
isort and black
Browse files Browse the repository at this point in the history
  • Loading branch information
icfaust committed Nov 3, 2024
1 parent 2fb52a8 commit 28dc267
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion onedal/datatypes/_data_conversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,11 @@ def _apply_and_pass(func, *args, **kwargs):
return func(args[0], **kwargs)
return tuple(map(lambda arg: func(arg, **kwargs), args))


def convert_one_to_table(arg):
return _backend.to_table(arg if sp.issparse(arg) else make2d(arg))


def to_table(*args):
return _apply_and_pass(convert_one_to_table, *args)

Expand Down Expand Up @@ -136,4 +138,3 @@ def from_table(*args, sycl_queue=None, sua_iface=None, xp=None):
return _apply_and_pass(
convert_one_from_table, *args, sycl_queue=sycl_queue, sua_iface=sua_iface, xp=xp
)

1 change: 0 additions & 1 deletion onedal/datatypes/table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ ONEDAL_PY_INIT_MODULE(table) {
auto* obj_ptr = convert_to_pyobject(t);
return obj_ptr;
});

}

} // namespace oneapi::dal::python

0 comments on commit 28dc267

Please sign in to comment.