Skip to content

Commit

Permalink
Fix pre-commit issues
Browse files Browse the repository at this point in the history
  • Loading branch information
antonwolfy committed May 2, 2024
1 parent 07babc0 commit e23dda5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions dpnp/dpnp_iface_searching.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,14 @@
"""

# pylint: disable=no-name-in-module

import dpctl.tensor as dpt
import dpctl.tensor._tensor_impl as dti

import dpnp

from .dpnp_array import dpnp_array

# pylint: disable=no-name-in-module
from .dpnp_utils import (
get_usm_allocations,
)
Expand Down
6 changes: 4 additions & 2 deletions dpnp/dpnp_utils/dpnp_utils_reduction.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
__all__ = ["dpnp_wrap_reduction_call"]


def dpnp_wrap_reduction_call(a, out, _reduction_fn, _get_res_dt_fn, *args, **kwargs):
def dpnp_wrap_reduction_call(
a, out, _reduction_fn, _get_res_dt_fn, *args, **kwargs
):
"""Wrap a reduction call from dpctl.tensor interface."""

input_out = out
Expand All @@ -39,7 +41,7 @@ def dpnp_wrap_reduction_call(a, out, _reduction_fn, _get_res_dt_fn, *args, **kwa
else:
dpnp.check_supported_arrays_type(out)

# fetch dtype from the passsed kwargs to the reduction call
# fetch dtype from the passed kwargs to the reduction call
dtype = kwargs.get("dtype", None)

# dpctl requires strict data type matching of out array with the result
Expand Down

0 comments on commit e23dda5

Please sign in to comment.