Thank you =) yes, we are trying to implement cutmix… you randomly cut small image patch from one image and paste to another… For loop works fine but I was wondering if there is a way to speed this up.