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
..
2024-01-21 02:10:42 +08:00
2023-09-13 11:57:05 +08:00
2024-07-09 09:57:52 +08:00
2024-07-18 21:05:59 +08:00
2023-09-13 11:57:05 +08:00
2023-09-13 11:57:05 +08:00
2023-12-13 17:34:12 +08:00
2023-09-13 11:57:05 +08:00
2023-09-13 11:57:05 +08:00
2023-09-13 11:57:05 +08:00
2023-09-13 11:57:05 +08:00
2023-09-13 11:57:05 +08:00
2023-09-13 11:57:05 +08:00
2023-09-13 11:57:05 +08:00
2023-09-13 11:57:05 +08:00
2023-09-13 11:57:05 +08:00
2024-07-09 09:57:52 +08:00
2023-09-13 11:57:05 +08:00
2023-09-13 11:57:05 +08:00
2023-12-13 17:34:12 +08:00
2023-09-13 11:57:05 +08:00
2023-09-13 11:57:05 +08:00
2023-09-13 11:57:05 +08:00
2024-01-04 13:59:32 +08:00
2023-09-13 11:57:05 +08:00
2023-09-13 11:57:05 +08:00
2023-09-13 11:57:05 +08:00
2023-09-13 11:57:05 +08:00
2023-09-13 11:57:05 +08:00
2024-12-16 10:24:16 +08:00
2023-09-13 11:57:05 +08:00