No i cant use that I have already looked at it. But how do i pad a 4d tensor. You can look at the example in padlyer link in the question. More precisely i need reflect pading for 2nd and 3rd dims of 4d tensor