From 87b62d68957a2194b017a43b6c2a15424a05a984 Mon Sep 17 00:00:00 2001
From: Carl <415692979@qq.com>
Date: 星期三, 27 三月 2024 19:15:47 +0800
Subject: [PATCH] <funasr>: <punc online> (#1552)

---
 funasr/models/branchformer/encoder.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/funasr/models/branchformer/encoder.py b/funasr/models/branchformer/encoder.py
index 11b6429..4b5b237 100644
--- a/funasr/models/branchformer/encoder.py
+++ b/funasr/models/branchformer/encoder.py
@@ -43,7 +43,7 @@
     check_short_utt,
 )
 
-from funasr.utils.register import register_class
+from funasr.register import tables
 
 class BranchformerEncoderLayer(torch.nn.Module):
     """Branchformer encoder layer module.
@@ -291,7 +291,7 @@
 
         return x, mask
 
-@register_class("encoder_classes", "BranchformerEncoder")
+@tables.register("encoder_classes", "BranchformerEncoder")
 class BranchformerEncoder(nn.Module):
     """Branchformer encoder module."""
 

--
Gitblit v1.9.1