Skip to content

Commit e6a72e9

Browse files
committed
Fixed merging for previous commit
1 parent 38b7ac6 commit e6a72e9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

dpnp/backend/kernels/dpnp_krnl_arraycreation.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ void dpnp_full_like_c(void* array_in, void* result, const size_t size)
340340
size,
341341
dep_event_vec_ref);
342342
DPCTLEvent_WaitAndThrow(event_ref);
343+
DPCTLEvent_Delete(event_ref);
343344
}
344345

345346
template <typename _DataType>

dpnp/random/dpnp_algo_random.pyx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ and the rest of the library
3535

3636
import numpy
3737
import dpctl
38+
import dpnp
3839
import numbers
3940
import dpnp.config as config
4041
from dpnp.dpnp_array import dpnp_array
@@ -382,7 +383,7 @@ cdef class MT19937:
382383
cdef c_dpctl.DPCTLSyclEventRef event_ref
383384

384385
if scale == 0.0:
385-
return dpnp_full(size, loc, dtype)
386+
return utils.dpnp_descriptor(dpnp.full(size, loc, dtype=dtype))
386387

387388
# convert string type names (array.dtype) to C enum DPNPFuncType
388389
param1_type = dpnp_dtype_to_DPNPFuncType(dtype)
@@ -418,7 +419,7 @@ cdef class MT19937:
418419
cdef c_dpctl.DPCTLSyclEventRef event_ref
419420

420421
if low == high:
421-
return dpnp_full(size, low, dtype)
422+
return utils.dpnp_descriptor(dpnp.full(size, low, dtype=dtype))
422423

423424
# convert string type names (array.dtype) to C enum DPNPFuncType
424425
param1_type = dpnp_dtype_to_DPNPFuncType(dtype)

0 commit comments

Comments
 (0)