You are welcome, Actually, you have not provided much information about what you want to do. But if your problem is padding as you mentioned previously, you can do it using the snippet. But yes, you can now feed it in forward function to a conv2d.