MCPcopy Create free account

hub / github.com/ASLP-lab/OSUM-Pangu / functions

Functions1,198 in github.com/ASLP-lab/OSUM-Pangu

Method__init__
Args: mean (torch.Tensor): mean stats istd (torch.Tensor): inverse std, std which is 1.0 / std
wenet/transformer/cmvn.py:20
Method__init__
( self, dim: int, eps: float = 1e-6, add_unit_offset: bool = True, )
wenet/transformer/norm.py:8
Method__init__
Construct an RelPositionMultiHeadedAttention object.
wenet/transformer/attention.py:316
Method__init__
(self, n_head: int, n_feat: int, dropout_rate: float,
wenet/transformer/attention.py:443
Method__init__
(self, n_head: int, n_feat: int, dropout_rate: float,
wenet/transformer/attention.py:527
Method__init__
(self, n_head: int, n_feat: int, dropout_rate: float,
wenet/transformer/attention.py:601
Method__init__
Construct an ConvolutionModule object. Args: channels (int): The number of channels of conv layers. kernel_size (int):
wenet/transformer/convolution.py:28
Method__init__
Construct TransformerEncoder See Encoder for the meaning of each parameter.
wenet/transformer/encoder.py:372
Method__init__
Construct TransformerEncoder See Encoder for the meaning of each parameter.
wenet/transformer/encoder.py:445
Method__init__
Construct ConformerEncoder Args: input_size to use_dynamic_chunk, see in BaseEncoder positionwise_conv_kernel_size (i
wenet/transformer/encoder.py:580
Method__init__
Args: tokens: decode token list score: the total decode score of this result confidence: the total confid
wenet/transformer/search.py:32
Method__init__
(self, s: float = float('-inf'), ns: float = float('-inf'),
wenet/transformer/search.py:65
Method__init__
Initialize class.
wenet/transformer/embedding.py:130
Method__init__
(self, d_model: int, dropout_rate: float, max_len: int = 30000)
wenet/transformer/embedding.py:154
Method__init__
(self, d_model: int, dropout_rate: float, max_len: int = 448)
wenet/transformer/embedding.py:171
Method__init__
(self, d_model: int, dropout_rate: float)
wenet/transformer/embedding.py:182
Method__init__
(self, d_model: int, head_dim: int, dropout_rate: float,
wenet/transformer/embedding.py:203
Method__init__
Construct an EncoderLayer object.
wenet/transformer/encoder_layer.py:44
Method__init__
( self, vocab_size: int, encoder: TransformerEncoder, decoder: TransformerDeco
wenet/ctl_model/asr_model_ctl.py:37
Method__init__
Construct DualTransformerEncoder Support both the full context mode and the streaming mode separately
wenet/ctl_model/encoder.py:29
Method__init__
( self, r: int, lora_alpha: int, lora_dropout: float, merge_weights: b
wenet/finetune/lora/layers.py:18
Method__init__
(self, num_embeddings: int, embedding_dim: int, r: int = 0,
wenet/finetune/lora/layers.py:42
Method__init__
(self, in_features: int, out_features: int, r: int = 0,
wenet/finetune/lora/layers.py:176
Method__init__
(self, conv_module, in_channels, out_channels,
wenet/finetune/lora/layers.py:267
Method__init__
(self, *args, **kwargs)
wenet/finetune/lora/layers.py:336
Method__init__
(self, *args, **kwargs)
wenet/finetune/lora/layers.py:342
Method__init__
(self, *args, **kwargs)
wenet/finetune/lora/layers.py:349
Method__init__
(self, module, chunk_size=8, run_on_bpu=False)
wenet/bin/export_onnx_bpu.py:69
Method__init__
(self, channels)
wenet/bin/export_onnx_bpu.py:131
Method__init__
(self, module, is_pointwise_conv=False)
wenet/bin/export_onnx_bpu.py:165
Method__init__
(self, module)
wenet/bin/export_onnx_bpu.py:216
Method__init__
(self, module)
wenet/bin/export_onnx_bpu.py:244
Method__init__
(self, module, chunk_size, left_chunks)
wenet/bin/export_onnx_bpu.py:324
Method__init__
(self, module)
wenet/bin/export_onnx_bpu.py:429
Method__init__
(self, module, chunk_size, left_chunks, ln_run_on_bpu=False)
wenet/bin/export_onnx_bpu.py:558
Method__init__
(self, module, chunk_size, left_chunks, ln_run_on_bpu=False)
wenet/bin/export_onnx_bpu.py:674
Method__init__
(self, module)
wenet/bin/export_onnx_bpu.py:803
Method__init__
( self, model, required_cache_size, beam_size, transformer=False,
wenet/bin/export_onnx_gpu.py:85
Method__init__
(self, model, required_cache_size, beam_size)
wenet/bin/export_onnx_gpu.py:233
Method__init__
(self, model, required_cache_size, beam_size)
wenet/bin/export_onnx_gpu.py:434
Method__init__
( self, decoder: TransformerDecoder, ctc_weight: float = 0.5, reverse_weight:
wenet/bin/export_onnx_gpu.py:630
Method__init__
(self, encoder, linear_head, )
wenet/llm_asr/llmasr_model_instruct_version.py:29
Method__init__
Construct an Conv1dSubsampling object.
wenet/llm_asr/downsampler.py:49
Method__init__
Construct an Conv1dSubsampling object.
wenet/llm_asr/downsampler.py:90
Method__init__
Construct an Conv1dSubsampling object.
wenet/llm_asr/downsampler.py:126
Method__init__
( self, enc_out_dim: int = 512, llm_embed_dim: int = 4096, kernel_size: int =
wenet/llm_asr/downsampler.py:154
Method__init__
(self, symbol_table: Union[str, PathLike, Dict], seg_dict: Optional[Union[st
wenet/text/paraformer_tokenizer.py:20
Method__init__
(self, model: Union[str, PathLike], *args, **kwargs)
wenet/text/hugging_face_tokenizer.py:8
Method__init__
( self, multilingual: bool, num_languages: int = 99, language: Optional[str] =
wenet/text/whisper_tokenizer.py:10
Method__init__
( self, symbol_table: Union[str, PathLike, Dict], non_lang_syms: Optional[Union[str, P
wenet/text/char_tokenizer.py:11
Method__init__
( self, bpe_model: Union[PathLike, str], symbol_table: Union[str, PathLike, Dict],
wenet/text/bpe_tokenizer.py:9
Method__iter__
(self)
tools/compute_shard_cmvn_stats.py:161
Method__iter__
(self)
tools/extract_shard_data.py:123
Method__iter__
(self)
wenet/branchformer/encoder.py:173
Method__iter__
Return an iterator over the source dataset processed by the given processor.
wenet/dataset/dataset.py:39
Method__iter__
(self)
wenet/dataset/dataset.py:171
Method__iter__
(self)
wenet/dataset/dataset.py:197
Method__iter__
(self)
wenet/dataset/datapipes.py:47
Method__iter__
(self)
wenet/dataset/datapipes.py:86
Method__iter__
(self)
wenet/dataset/datapipes.py:125
Method__iter__
(self)
wenet/dataset/datapipes.py:168
Method__iter__
(self)
wenet/dataset/datapipes.py:200
Method__iter__
(self)
wenet/dataset/datapipes.py:234
Method__iter__
(self)
wenet/dataset/datapipes.py:267
Method__iter__
(self)
wenet/dataset/datapipes.py:326
Method__iter__
(self)
wenet/dataset/datapipes.py:357
Method__iter__
(self)
wenet/dataset/datapipes.py:374
Method__iter__
(self)
wenet/dataset/datapipes.py:446
Method__iter__
(self)
wenet/dataset/datapipes.py:468
Method__len__
(self)
tools/compute_cmvn_stats.py:73
Method__repr__
(self)
wenet/utils/scheduler.py:54
Method__setstate__
(self, state)
wenet/text/hugging_face_tokenizer.py:21
Method__setstate__
(self, state)
wenet/text/whisper_tokenizer.py:41
Method_calc_att_loss
( self, encoder_out: torch.Tensor, encoder_mask: torch.Tensor, ys_pad: torch.T
wenet/whisper/whisper_with_clap.py:89
Function_do_test_for_streaming_chat
()
wenet/llm_asr/utils4llmasr.py:415
Method_element_to_bucket_id
(self, elem)
wenet/dataset/datapipes.py:89
Method_forward_ctc
( self, encoder_out: torch.Tensor, encoder_mask: torch.Tensor, text: torch.Tensor,
wenet/transformer/asr_model.py:199
Method_get_constant_lr
(self, step)
wenet/utils/scheduler.py:544
Method_get_embedding_from_text
将字符串先量化,再转成词向量 Args: text: str Returns: text_embeds: (1, L, D)
wenet/llm_asr/llmasr_model_instruct_version.py:1612
Method_get_lr
(self, step)
wenet/utils/scheduler.py:464
Method_get_lr
(self, step)
wenet/utils/scheduler.py:491
Method_get_lr
(self, step)
wenet/utils/scheduler.py:517
Method_get_lr
(self, step)
wenet/utils/scheduler.py:699
Method_get_warmup_lr
(self, step)
wenet/utils/scheduler.py:537
Function_poly_decay
(initial_lr, step, decay_steps, power, min_lr, cycle)
wenet/utils/scheduler.py:426
Method_reset_parameter
(module: torch.nn.Module)
wenet/ssl/w2vbert/w2vbert_model.py:127
Method_reset_parameter
(module: torch.nn.Module)
wenet/ssl/wav2vec2/wav2vec2_model.py:186
Method_reset_parameter
(module: torch.nn.Module)
wenet/ssl/bestrq/bestrq_model.py:124
Method_window_size_func
(self, bucket_id)
wenet/dataset/datapipes.py:98
Functionadd_sos_eos4speech_llm
Add <sos> and <eos> labels. 为out后接一个eos. in基本保持不变 Args: ys_pad (torch.Tensor): batch of padded target sequences (B, Lmax) sos
wenet/llm_asr/utils4llmasr.py:11
Methodalign
(self, audio_file: str, label: str)
wenet/cli/paraformer_model.py:67
Functionanaosum_echat2e
(datas, output_file, thread_id)
tools/analyze_dataset.py:67
Methodapply
(self, f)
wenet/dataset/dataset.py:47
Methodapply_sharding
(self, num_of_instances: int, instance_id: int, sharding_group: SHARDING_PRIORITIES)
wenet/dataset/datapipes.py:287
Functionbatch
Wrapper for static/dynamic batch
wenet/dataset/process/processor_tag_think.py:1791
Functionbatch
Wrapper for static/dynamic batch
wenet/dataset/process/processor.py:1758
Functionbatch
Wrapper for static/dynamic batch
wenet/dataset/process/processor_language_think.py:1723
Functionbatch
Wrapper for static/dynamic batch
wenet/dataset/process/processor_tmp.py:1946
Methodbatch_to_cache
(self, cache: List[torch.Tensor])
wenet/transducer/predictor.py:31
Methodbatch_to_cache
Args: cache : [history] history: [bs, ...] Returns: new_ache : [[history_1], [history_2], [hi
wenet/transducer/predictor.py:260
← previousnext →701–800 of 1,198, ranked by callers