From 1dcdd5f8a618ba7ea7eb8d7c9b5f3d0acf5a3d9d Mon Sep 17 00:00:00 2001
From: zhifu gao <zhifu.gzf@alibaba-inc.com>
Date: 星期二, 25 七月 2023 14:07:27 +0800
Subject: [PATCH] Update readme.md

---
 funasr/layers/label_aggregation.py |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/funasr/layers/label_aggregation.py b/funasr/layers/label_aggregation.py
index 075e19d..8366a79 100644
--- a/funasr/layers/label_aggregation.py
+++ b/funasr/layers/label_aggregation.py
@@ -1,5 +1,4 @@
 import torch
-from typeguard import check_argument_types
 from typing import Optional
 from typing import Tuple
 
@@ -13,7 +12,6 @@
         hop_length: int = 128,
         center: bool = True,
     ):
-        assert check_argument_types()
         super().__init__()
 
         self.win_length = win_length
@@ -79,4 +77,4 @@
         else:
             olens = None
 
-        return output, olens
+        return output.to(input.dtype), olens

--
Gitblit v1.9.1