From d72df6cd2f1914a749db0778233f3a66f447894a Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期四, 13 六月 2024 17:45:33 +0800
Subject: [PATCH] decoding

---
 funasr/train_utils/trainer_ds.py |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/funasr/train_utils/trainer_ds.py b/funasr/train_utils/trainer_ds.py
index 8a0679c..f1d70e2 100644
--- a/funasr/train_utils/trainer_ds.py
+++ b/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
 

--
Gitblit v1.9.1