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
..
2023-06-28 16:43:49 +08:00
2023-06-28 16:43:49 +08:00
2023-10-27 13:35:43 +08:00
2023-06-28 16:43:49 +08:00
2023-06-28 16:43:49 +08:00
2023-06-28 16:43:49 +08:00
2023-09-26 15:41:39 +08:00
2023-06-28 16:43:49 +08:00
2023-06-28 16:43:49 +08:00
2023-06-28 16:43:49 +08:00
2023-06-28 16:43:49 +08:00
2023-06-28 16:43:49 +08:00