mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
decoding
This commit is contained in:
parent
7355e20503
commit
d72df6cd2f
@ -30,8 +30,9 @@ def maybe_autocast(dtype=None, use_deepspeed=False):
|
||||
yield
|
||||
else:
|
||||
if dtype == torch.float16 or dtype == torch.bfloat16:
|
||||
with autocast(enabled=True, dtype=dtype):
|
||||
yield
|
||||
yield
|
||||
# with autocast(enabled=True, dtype=dtype):
|
||||
# yield
|
||||
else:
|
||||
yield
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user