Skip to content

Commit c785c87

Browse files
authored
Update custom_kernels_manipulation.cpp
1 parent 694d234 commit c785c87

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

dpnp/backend/custom_kernels_manipulation.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ void custom_elemwise_transpose_c(void* array1_in,
4343
void* result1,
4444
size_t size)
4545
{
46+
if (!size)
47+
{
48+
return;
49+
}
50+
4651
cl::sycl::event event;
4752
_DataType* array1 = reinterpret_cast<_DataType*>(array1_in);
4853
_DataType* result = reinterpret_cast<_DataType*>(result1);

0 commit comments

Comments
 (0)