I want to put a derivable patch (e.g. 60×60) into a size 500×500 image, then put it into a 608×608 input network (YOLOv4).
I want to get patch.grad, how can I get it?
I realize using transforms to do resize is seemly failed.