游雁
2024-06-17 7c4cfcfab4f4270c344bd07e1622eb84f85100e3
funasr/train_utils/trainer_ds.py
@@ -30,8 +30,9 @@
            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