Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENH small cleaning and optimizations accross the repo #88

Closed
wants to merge 13 commits into from
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repos:
files: sklearn_numba_dpex/
additional_dependencies: [pytest==6.2.4]
- repo: https://github.com/PyCQA/isort
rev: 5.10.1
rev: 5.12.0
hooks:
- id: isort
files: sklearn_numba_dpex/
11 changes: 7 additions & 4 deletions sklearn_numba_dpex/common/_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,14 @@ def _plus_closure(x, y):
return _plus_closure


def _divide():
def _divide_closure(x, y):
return x / y
def _divide_by(divisor):
def _divide_by_fn():
def _divide_closure(x):
return x / divisor

return _divide_closure
return _divide_closure

return _divide_by_fn


def _check_max_work_group_size(
Expand Down
Loading