ROI Extraction - subregion of feature map?

Is there a pytorch module that lets me extract a subregion of a conv feature map?

I have a feature map of [B, 64, 100, 100]

I have a set of bounding boxes as follows: [B, N, 4] (x1, y1, x2, y2 format)

Is there any function that lets me extract these bboxes differentiabily?