Is there a function to extract image patches in PyTorch? : <p>Given a batch of images, I'd like to extract all possible image patches, similar to a convolution. In TensorFlow, we can use <a href="https://www.tensorflow.org/api_docs/python/tf/extract_image_patches" rel="noreferrer"><code>tf.extract_image_patches</code></a> to achieve this. Is there an equivalent function in PyTorch?</p>

<p>Thank you.</p>
