Some reference scripts have added support for AMP via APEX a couple of years ago, see https://github.com/pytorch/vision/blob/4bf608633f9299aeda61b08ae126961acaadec22/references/classification/train.py#L17 for one example PyTorch [now natively supports AMP in the `torch.cuda.amp` namespace](https://pytorch.org/docs/stable/amp.html?highlight=amp#module-torch.cuda.amp), so we should use PyTorch's AMP instead of apex for simplicity. The replacement needs to happen on the following scripts: - [x] Classification - [x] Detection #4933 - [x] Segmentation #4994 - [x] [Video Classification](https://github.com/pytorch/vision/blob/main/references/video_classification/train.py) cc @datumbox