refactor `prototype.transforms.RandomCrop` (#6640)
* refactor RandomCrop * mypy * fix test * use padding directly rather than private attribute * only compute type specific fill if padding is needed * [DRAFT] don't use the diff trick * fix error message Co-authored-by:vfdev <vfdev.5@gmail.com> * remove height and width diff * reinstate separate diff checking * introduce needs_crop flag Co-authored-by:
vfdev <vfdev.5@gmail.com>
Showing
Please register or sign in to comment