From f6daebd88eb8aa3d37dc9a063043becb2a7bc8d6 Mon Sep 17 00:00:00 2001
From: 雾聪 <wucong.lyb@alibaba-inc.com>
Date: 星期一, 08 一月 2024 16:49:24 +0800
Subject: [PATCH] update websocket_protocol

---
 funasr/datasets/large_datasets/datapipes/filter.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/funasr/datasets/large_datasets/datapipes/filter.py b/funasr/datasets/large_datasets/datapipes/filter.py
index e79934d..6fe7153 100644
--- a/funasr/datasets/large_datasets/datapipes/filter.py
+++ b/funasr/datasets/large_datasets/datapipes/filter.py
@@ -13,7 +13,7 @@
         self.fn = fn
 
     def set_epoch(self, epoch):
-        self.epoch = epoch
+        self.datapipe.set_epoch(epoch)
 
     def __iter__(self):
         assert callable(self.fn)
@@ -21,4 +21,4 @@
             if self.fn(data):
                 yield data
             else:
-                continue
\ No newline at end of file
+                continue

--
Gitblit v1.9.1