MCPcopy Create free account
hub / github.com/modelscope/FunASR / TooShortUttError

Class TooShortUttError

funasr/models/rwkv_bat/rwkv_subsampling.py:12–26  ·  view source on GitHub ↗

Raised when the utt is too short for subsampling. Args: message (str): Message for error catch actual_size (int): the short size that cannot pass the subsampling limit (int): the limit size for subsampling

Source from the content-addressed store, hash-verified

10
11
12class TooShortUttError(Exception):
13 """Raised when the utt is too short for subsampling.
14
15 Args:
16 message (str): Message for error catch
17 actual_size (int): the short size that cannot pass the subsampling
18 limit (int): the limit size for subsampling
19
20 """
21
22 def __init__(self, message, actual_size, limit):
23 """Construct a TooShortUttError for error handler."""
24 super().__init__(message)
25 self.actual_size = actual_size
26 self.limit = limit
27
28
29def check_short_utt(ins, size):

Callers 12

forwardMethod · 0.90
forwardMethod · 0.90
forwardMethod · 0.90
forward_hiddenMethod · 0.90
forwardMethod · 0.90
forwardMethod · 0.90
forwardMethod · 0.90
full_utt_forwardMethod · 0.90
simu_chunk_forwardMethod · 0.90
forwardMethod · 0.90
forwardMethod · 0.90
forwardMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…