Li Peng
3e4da5f781
Replace deprecated pytorch methods (#1814)
* Replace deprecated pytorch methods
- torch.cuda.amp.GradScaler(...) => torch.amp.GradScaler("cuda", ...)
- torch.cuda.amp.autocast(...) => torch.amp.autocast("cuda", ...)
* Replace `with autocast(...)` with `with autocast("cuda", ...)`
Co-authored-by: Li Peng <lipeng@unisound.ai>
2024-12-16 10:24:16 +08:00
..
2022-05-13 11:03:26 +08:00
2024-01-21 02:10:42 +08:00
2022-05-13 13:03:16 +08:00
2023-04-20 12:27:43 +08:00
2022-05-13 13:03:16 +08:00
2024-10-29 15:50:49 +08:00
2022-05-13 13:03:16 +08:00
2022-05-13 13:03:16 +08:00
2024-01-26 19:18:33 +08:00
2022-05-13 11:03:26 +08:00
2022-05-13 13:03:16 +08:00
2024-01-26 19:18:33 +08:00
2022-05-13 13:03:16 +08:00
2022-05-13 13:03:16 +08:00
2024-01-26 19:18:33 +08:00
2022-05-13 13:03:16 +08:00
2024-12-16 10:24:16 +08:00