icefall/egs/librispeech/ASR/pruned_transducer_stateless2
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-03-16 22:14:30 +08:00
2022-03-16 22:14:30 +08:00
2023-10-11 16:58:00 +08:00
2023-03-10 14:37:28 +08:00
2023-02-07 15:01:59 +08:00