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-05 21:20:04 +08:00
2022-05-05 21:20:04 +08:00
2022-05-05 21:20:04 +08:00
2022-05-05 21:20:04 +08:00
2022-06-28 00:18:54 +08:00
2023-11-18 18:47:55 +08:00
2022-05-05 21:20:04 +08:00
2022-05-05 21:20:04 +08:00
2023-08-12 16:53:59 +08:00
2022-05-05 21:20:04 +08:00
2023-01-16 20:26:36 +08:00
2022-05-05 21:20:04 +08:00
2024-03-04 23:28:04 +08:00
2022-05-05 21:20:04 +08:00
2023-01-16 20:26:36 +08:00
2022-05-05 21:20:04 +08:00
2022-07-25 16:53:23 +08:00
2024-01-05 10:21:27 +08:00
2022-06-28 00:18:54 +08:00
2024-12-16 10:24:16 +08:00