From c792311d94806cf7db5a3d41382dd181be7a28d6 Mon Sep 17 00:00:00 2001
From: season <season4675@gmail.com>
Date: 星期五, 30 六月 2023 11:49:55 +0800
Subject: [PATCH] [funasr-runtime-deploy 0.0.3] add funasr-runtime-deploy.sh for one-step-deployment (#690)
---
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