Update deprecated autocast functions #8825
Dr.CI classification results
{"FAILED":[{"workflowId":12473892816,"workflowUniqueId":56905118,"id":34816292220,"runnerName":"i-0c8ecf2b654b4edc1","authorEmail":"sdym@fb.com","name":"Tests / unittests-linux (3.10, linux.12xlarge, cpu) / linux-job","jobName":"unittests-linux (3.10, linux.12xlarge, cpu) / linux-job","conclusion":"failure","completed_at":"2024-12-24T00:00:54.000000000Z","html_url":"https://github.com/pytorch/vision/actions/runs/12473892816/job/34816292220","head_branch":"sdym/autocast","pr_number":8825,"head_sha":"72cf9b0ccc17f9935d33f5bd28a993b506dd5c7e","head_sha_timestamp":"2024-12-23T22:35:02.000000000Z","failure_captures":["RuntimeError: Command docker exec -t 1d38c041a0225757124a3e825625930dd2032a4a04ba8e8624fc52ddf6351458 /exec failed with exit code 1"],"failure_lines":["RuntimeError: Command docker exec -t 1d38c041a0225757124a3e825625930dd2032a4a04ba8e8624fc52ddf6351458 /exec failed with exit code 1"],"failure_context":[],"time":"2024-12-23T23:37:37.000000000Z"},{"workflowId":12473892816,"workflowUniqueId":56905118,"id":34816292379,"runnerName":"i-080d1c52355ba7542","authorEmail":"sdym@fb.com","name":"Tests / unittests-linux (3.11, linux.12xlarge, cpu) / linux-job","jobName":"unittests-linux (3.11, linux.12xlarge, cpu) / linux-job","conclusion":"failure","completed_at":"2024-12-23T23:58:51.000000000Z","html_url":"https://github.com/pytorch/vision/actions/runs/12473892816/job/34816292379","head_branch":"sdym/autocast","pr_number":8825,"head_sha":"72cf9b0ccc17f9935d33f5bd28a993b506dd5c7e","head_sha_timestamp":"2024-12-23T22:35:02.000000000Z","failure_captures":["RuntimeError: Command docker exec -t e4727b56416cc2f588fa3f5cd8946b377a2b4fbd26d358806b7c4f47e964d0a7 /exec failed with exit code 1"],"failure_lines":["RuntimeError: Command docker exec -t e4727b56416cc2f588fa3f5cd8946b377a2b4fbd26d358806b7c4f47e964d0a7 /exec failed with exit code 1"],"failure_context":[],"time":"2024-12-23T23:37:38.000000000Z"},{"workflowId":12473892816,"workflowUniqueId":56905118,"id":34816292505,"runnerName":"i-0e87a459fe0b92f1f","authorEmail":"sdym@fb.com","name":"Tests / unittests-linux (3.12, linux.12xlarge, cpu) / linux-job","jobName":"unittests-linux (3.12, linux.12xlarge, cpu) / linux-job","conclusion":"failure","completed_at":"2024-12-24T00:00:05.000000000Z","html_url":"https://github.com/pytorch/vision/actions/runs/12473892816/job/34816292505","head_branch":"sdym/autocast","pr_number":8825,"head_sha":"72cf9b0ccc17f9935d33f5bd28a993b506dd5c7e","head_sha_timestamp":"2024-12-23T22:35:02.000000000Z","failure_captures":["RuntimeError: Command docker exec -t 702727f00f6cf3e52ce081c543cf66023fac560e0256614a194b17cd9e3549e4 /exec failed with exit code 1"],"failure_lines":["RuntimeError: Command docker exec -t 702727f00f6cf3e52ce081c543cf66023fac560e0256614a194b17cd9e3549e4 /exec failed with exit code 1"],"failure_context":[],"time":"2024-12-23T23:37:38.000000000Z"},{"workflowId":12473892816,"workflowUniqueId":56905118,"id":34816292701,"runnerName":"i-0ea793e35735d122a","authorEmail":"sdym@fb.com","name":"Tests / unittests-linux (3.9, linux.12xlarge, cpu) / linux-job","jobName":"unittests-linux (3.9, linux.12xlarge, cpu) / linux-job","conclusion":"failure","completed_at":"2024-12-24T00:00:35.000000000Z","html_url":"https://github.com/pytorch/vision/actions/runs/12473892816/job/34816292701","head_branch":"sdym/autocast","pr_number":8825,"head_sha":"72cf9b0ccc17f9935d33f5bd28a993b506dd5c7e","head_sha_timestamp":"2024-12-23T22:35:02.000000000Z","failure_captures":["RuntimeError: Command docker exec -t d69d63f59074e379233af702fde25adb321241942802f1b148ad464786849d40 /exec failed with exit code 1"],"failure_lines":["RuntimeError: Command docker exec -t d69d63f59074e379233af702fde25adb321241942802f1b148ad464786849d40 /exec failed with exit code 1"],"failure_context":[],"time":"2024-12-23T23:37:39.000000000Z"}],"FLAKY":[],"BROKEN_TRUNK":[{"workflowId":12473892816,"workflowUniqueId":56905118,"id":34816293743,"runnerName":"i-060e88ed78e522458","authorEmail":"sdym@fb.com","name":"Tests / unittests-windows (3.9, windows.g5.4xlarge.nvidia.gpu, cuda, 11.8) / windows-job","jobName":"unittests-windows (3.9, windows.g5.4xlarge.nvidia.gpu, cuda, 11.8) / windows-job","conclusion":"failure","completed_at":"2024-12-23T23:43:27.000000000Z","html_url":"https://github.com/pytorch/vision/actions/runs/12473892816/job/34816293743","head_branch":"sdym/autocast","pr_number":8825,"head_sha":"72cf9b0ccc17f9935d33f5bd28a993b506dd5c7e","head_sha_timestamp":"2024-12-23T22:35:02.000000000Z","failure_captures":["AttributeError: '_OpNamespace' 'image' object has no attribute '_jpeg_version'"],"failure_lines":["AttributeError: '_OpNamespace' 'image' object has no attribute '_jpeg_version'"],"failure_context":[],"time":"2024-12-23T23:37:43.000000000Z"}],"UNSTABLE":[]}