From bc723ea200144bd6fa8a5dff4b9a780feda144fc Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期四, 29 六月 2023 18:55:01 +0800
Subject: [PATCH] dcos
---
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