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-09-29 11:15:43 +08:00
2022-09-29 11:15:43 +08:00
2022-09-29 11:15:43 +08:00
2023-03-08 22:56:04 +08:00
2022-09-29 11:15:43 +08:00
2022-09-29 11:15:43 +08:00
2023-02-13 11:44:25 +08:00
2023-02-09 00:02:38 +08:00
2023-08-12 16:53:59 +08:00
2024-01-04 13:59:32 +08:00
2022-09-29 11:15:43 +08:00
2023-02-13 12:16:43 +08:00
2022-10-18 11:25:31 +08:00
2022-09-29 11:15:43 +08:00
2023-02-09 00:02:38 +08:00
2023-02-09 00:02:38 +08:00
2022-09-29 11:15:43 +08:00
2024-01-04 13:59:32 +08:00
2022-09-29 11:15:43 +08:00
2022-09-29 11:15:43 +08:00
2022-09-29 11:15:43 +08:00
2024-01-05 10:21:27 +08:00
2022-09-29 11:15:43 +08:00
2022-09-29 11:15:43 +08:00
2024-12-16 10:24:16 +08:00