Thank, and last 2 questions,

How fix “one of the variables needed for gradient computation has been modified by an inplace operation…”, what is inplace operations in torch?
Does backpropagation pass through the function roi_pool from torchvision.ops?