Skip to content
Merged
Show file tree
Hide file tree
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 dpnp/dpnp_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,13 +301,13 @@ def ones(

def tril(x1, /, *, k=0):
"""Creates `dpnp_array` as lower triangular part of an input array."""
array_obj = dpt.tril(dpnp.get_usm_ndarray(x1), k)
array_obj = dpt.tril(dpnp.get_usm_ndarray(x1), k=k)
return dpnp_array(array_obj.shape, buffer=array_obj, order="K")


def triu(x1, /, *, k=0):
"""Creates `dpnp_array` as upper triangular part of an input array."""
array_obj = dpt.triu(dpnp.get_usm_ndarray(x1), k)
array_obj = dpt.triu(dpnp.get_usm_ndarray(x1), k=k)
return dpnp_array(array_obj.shape, buffer=array_obj, order="K")


Expand Down
2 changes: 1 addition & 1 deletion dpnp/dpnp_iface_manipulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ def can_cast(from_, to, casting="safe"):
if dpnp.is_supported_array_type(from_)
else dpnp.dtype(from_)
)
return dpt.can_cast(dtype_from, to, casting)
return dpt.can_cast(dtype_from, to, casting=casting)


def column_stack(tup):
Expand Down
2 changes: 1 addition & 1 deletion dpnp/random/dpnp_random_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ def normal(
f"scale={scale}, but must be non-negative."
)

dpu.validate_usm_type(usm_type=usm_type, allow_none=False)
dpu.validate_usm_type(usm_type, allow_none=False)
return self._random_state.normal(
loc=loc,
scale=scale,
Expand Down