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-02-29 10:57:38 +08:00
2024-02-29 10:57:38 +08:00
2024-03-04 23:28:04 +08:00
2024-03-04 23:28:04 +08:00
2024-02-29 10:57:38 +08:00
2024-02-29 10:57:38 +08:00
2024-03-21 15:08:58 +08:00
2024-03-21 15:08:58 +08:00
2024-02-29 10:57:38 +08:00
2024-02-29 10:57:38 +08:00
2024-03-04 23:28:04 +08:00
2024-02-29 10:57:38 +08:00
2024-02-29 10:57:38 +08:00
2024-02-29 10:57:38 +08:00
2024-02-29 10:57:38 +08:00
2024-02-29 10:57:38 +08:00
2024-12-16 10:24:16 +08:00
2024-12-16 10:24:16 +08:00