C3W2A_autograder_can't compile code

Yes, then that’s the problem. This is due to a version mismatch with the grader, in the case of Greg, he is using transform.functional.crop() and the thing with this and the CenterCrop function is that in the earlier versions the return type is “PIL Image” but in the higher versions the return type is “PIL Image or Tensors”. Our notebooks use a higher version of Torchvision and hence we don’t see any errors there but the grader might be using an earlier version of Torchvision, which leads to this issue.
This is being persistent now (in the recent past) as many are facing this issue and I have also informed the team. So mostly it will get rectified soon.

Till then it is recommended to do the cropping by array slicing rather than using different functions.

Regards,
Nithin

1 Like