游雁
2024-06-14 67329a74a52914170f301a7810cdfc742a7f5b95
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