MCPcopy Create free account

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

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

↓ 1 callersMethodcheck_equal
(self, module)
wenet/bin/export_onnx_bpu.py:347
↓ 1 callersMethodcheck_equal
(self, module)
wenet/bin/export_onnx_bpu.py:473
↓ 1 callersMethodcheck_equal
(self, module)
wenet/bin/export_onnx_bpu.py:532
↓ 1 callersMethodcheck_equal
(self, module)
wenet/bin/export_onnx_bpu.py:590
↓ 1 callersMethodcheck_equal
(self, module)
wenet/bin/export_onnx_bpu.py:700
↓ 1 callersMethodcheck_equal
(self, module)
wenet/bin/export_onnx_bpu.py:829
↓ 1 callersFunctioncheck_gradient_checkpoint
(model)
wenet/utils/fsdp_utils.py:83
↓ 1 callersFunctioncheck_modify_and_save_config
(args, configs, symbol_table)
wenet/utils/train_utils.py:283
↓ 1 callersFunctioncheck_wer
(enc, ctc, args, conf, tokenizer)
tools/onnx2horizonbin.py:152
↓ 1 callersFunctioncif
(hidden: torch.Tensor, alphas: torch.Tensor, threshold: float)
wenet/paraformer/cif.py:250
↓ 1 callersFunctioncif_without_hidden
(alphas: torch.Tensor, threshold: float)
wenet/paraformer/cif.py:225
↓ 1 callersMethodcompute_feats
(self, audio_file: str)
wenet/cli/model.py:61
↓ 1 callersMethodcompute_preds
(self, x, y, negatives)
wenet/ctl_model/asr_model_ctl.py:241
↓ 1 callersFunctioncontain_oov
Check if all the given tokens are in token symbol table. Args: token_sym_table: Token symbol table that contains all the valid toke
tools/k2/prepare_char.py:122
↓ 1 callersFunctionconvert_ckpt_to_pt
(pt_dir_path)
common_utils/convert_ckpt_dir_to_pt.py:11
↓ 1 callersFunctionconvert_to_wenet_json_cmvn
(paraformer_cmvn_path, wenet_cmvn_path: str)
wenet/paraformer/convert_paraformer_to_wenet_config_and_ckpt.py:77
↓ 1 callersFunctionconvert_to_wenet_state_dict
(args, wenet_model_path)
wenet/paraformer/convert_paraformer_to_wenet_config_and_ckpt.py:174
↓ 1 callersFunctionconvert_to_wenet_state_dict
(whisper_state_dict, wenet_state_dict_path)
wenet/whisper/convert_whisper_to_wenet_config_and_ckpt.py:191
↓ 1 callersFunctionconvert_to_wenet_state_dict
(w2vbert_conformer_state_dict, wenet_state_dict_path)
wenet/ssl/w2vbert/convert_w2vbert_to_wenet_config_and_ckpt.py:118
↓ 1 callersFunctionconvert_to_wenet_tokenizer_conf
(symbol_table_path, seg_dict, configs, output_path)
wenet/paraformer/convert_paraformer_to_wenet_config_and_ckpt.py:84
↓ 1 callersFunctionconvert_to_wenet_units
NOTE(xcsong): The "units.txt" file is solely for adapting to the training API of Wenet and for quickly checking the corresponding tex
wenet/whisper/convert_whisper_to_wenet_config_and_ckpt.py:245
↓ 1 callersFunctionconvert_to_wenet_yaml
(configs, wenet_yaml_path: str, fields_to_keep: List[str])
wenet/paraformer/convert_paraformer_to_wenet_config_and_ckpt.py:99
↓ 1 callersFunctionconvert_to_wenet_yaml
(tokenizer, dims, wenet_yaml_path: str)
wenet/whisper/convert_whisper_to_wenet_config_and_ckpt.py:45
↓ 1 callersMethodctc_activation
Export interface for c++ call, apply linear transform and log softmax before ctc Args: xs (torch.Tensor): encoder out
wenet/transformer/asr_model.py:457
↓ 1 callersMethodcv
Cross validation on
wenet/utils/executor.py:148
↓ 1 callersFunctiondefault_cluster
(word)
tools/compute-cer.py:254
↓ 1 callersFunctiondefault_cluster
(word)
tools/compute-wer.py:247
↓ 1 callersMethoddetokenize
(self, ids: List[int])
wenet/text/whisper_tokenizer.py:72
↓ 1 callersFunctiondistort_wav_conf
(x, distort_type, distort_conf, rate=0.1)
wenet/dataset/wav_distortion.py:290
↓ 1 callersFunctiondistort_wav_conf_and_save
(distort_type, distort_conf, rate, wav_in, wav_out)
wenet/dataset/wav_distortion.py:316
↓ 1 callersFunctiondo_resample
...
common_utils/utils4infer.py:50
↓ 1 callersMethoddo_select_iter
(self, datasets)
wenet/dataset/dataset.py:210
↓ 1 callersFunctiondownload
download from url to dest
wenet/cli/hub.py:25
↓ 1 callersMethoddropout_complex
(self, x)
wenet/transformer/embedding.py:253
↓ 1 callersFunctiondynamic_batch
Dynamic batch the data until the total frames in batch reach `max_frames_in_batch` Args: data: Iterable[{key, feat, labe
wenet/dataset/process/processor_tag_think.py:1502
↓ 1 callersFunctiondynamic_batch
Dynamic batch the data until the total frames in batch reach `max_frames_in_batch` Args: data: Iterable[{key, feat, labe
wenet/dataset/process/processor.py:1470
↓ 1 callersFunctiondynamic_batch
Dynamic batch the data until the total frames in batch reach `max_frames_in_batch` Args: data: Iterable[{key, feat, labe
wenet/dataset/process/processor_language_think.py:1435
↓ 1 callersFunctiondynamic_batch
Dynamic batch the data until the total frames in batch reach `max_frames_in_batch` Args: data: Iterable[{key, feat, labe
wenet/dataset/process/processor_tmp.py:1622
↓ 1 callersFunctionestimate_gradient
r""" Estimate the gradient of the model on the given dataset
wenet/finetune/lora/utils.py:116
↓ 1 callersFunctionexist_or_not
(i, match_pos)
tools/text2token.py:19
↓ 1 callersFunctionexport_ctc
(asr_model, args)
wenet/bin/export_onnx_cpu.py:274
↓ 1 callersFunctionexport_decoder
(asr_model, args)
wenet/bin/export_onnx_cpu.py:324
↓ 1 callersFunctionexport_decoder
(asr_model, args)
wenet/bin/export_onnx_bpu.py:1036
↓ 1 callersFunctionexport_encoder
(asr_model, args)
wenet/bin/export_onnx_cpu.py:79
↓ 1 callersFunctionexport_rescoring_decoder
(model, configs, args, logger, decoder_onnx_path, decoder_fastertransformer)
wenet/bin/export_onnx_gpu.py:988
↓ 1 callersFunctionextract_answer
(s)
wenet/dataset/process/processor_tag_think.py:484
↓ 1 callersFunctionextract_answer
(s)
wenet/dataset/process/processor.py:475
↓ 1 callersFunctionextract_answer
(s)
wenet/dataset/process/processor_language_think.py:475
↓ 1 callersFunctionextract_answer
(s)
wenet/dataset/process/processor_tmp.py:438
↓ 1 callersFunctionextract_dict
(configs, wenet_dict_path: str)
wenet/paraformer/convert_paraformer_to_wenet_config_and_ckpt.py:65
↓ 1 callersFunctionextract_first_content
(s)
wenet/dataset/process/processor_tag_think.py:469
↓ 1 callersFunctionextract_first_content
(s)
wenet/dataset/process/processor.py:460
↓ 1 callersFunctionextract_first_content
(s)
wenet/dataset/process/processor_language_think.py:460
↓ 1 callersFunctionextract_first_content
(s)
wenet/dataset/process/processor_tmp.py:423
↓ 1 callersFunctionfilter_modules
(model_state_dict, modules)
wenet/utils/checkpoint.py:87
↓ 1 callersFunctionfilter_state_dict
(model_state_dict, checkpoint_state_dict)
wenet/utils/checkpoint.py:26
↓ 1 callersMethodfinalize
When reaching the end of the decoded sequence, we need to finalize the matching, the purpose is to subtract the added bonus score for the
wenet/utils/context_graph.py:249
↓ 1 callersFunctionfind_available_ports
(ip, port_num=1, port=9091, port_end=9999)
tools/ssh_launcher.py:64
↓ 1 callersMethodforward
(self, x: torch.Tensor)
wenet/bin/export_onnx_bpu.py:110
↓ 1 callersMethodforward
Identity with 4-D dataflow, input == output. Args: x (torch.Tensor): (batch, in_channel, 1, time) Returns: (t
wenet/bin/export_onnx_bpu.py:151
↓ 1 callersMethodforward
Linear with 4-D dataflow. Args: x (torch.Tensor): (batch, in_channel, 1, time) Returns: (torch.Tensor): (batch
wenet/bin/export_onnx_bpu.py:203
↓ 1 callersMethodforward
Subsample x with 4-D dataflow. Args: x (torch.Tensor): Input tensor (#batch, 1, mel_dim, time). Returns: torc
wenet/bin/export_onnx_bpu.py:300
↓ 1 callersMethodforward
Compute scaled dot product attention. Args: q (torch.Tensor): Query tensor (#batch, size, 1, chunk_size). k (torch.Te
wenet/bin/export_onnx_bpu.py:371
↓ 1 callersMethodforward
Compute convolution module. Args: x (torch.Tensor): Input tensor (#batch, channels, 1, chunk_size). cache (torch.Tenso
wenet/bin/export_onnx_bpu.py:490
↓ 1 callersMethodforward
Forward function. Args: xs: input tensor (B, D, 1, L) Returns: output tensor, (B, D, 1, L)
wenet/bin/export_onnx_bpu.py:543
↓ 1 callersMethodforward
Compute encoded features. Args: x (torch.Tensor): (#batch, size, 1, chunk_size) att_mask (torch.Tensor): Mask tensor
wenet/bin/export_onnx_bpu.py:622
↓ 1 callersMethodforward
Forward just one chunk Args: xs (torch.Tensor): chunk input, with shape (b=1, 1, time, mel-dim), where `time ==
wenet/bin/export_onnx_bpu.py:741
↓ 1 callersMethodforward
frame activations, without softmax. Args: Tensor x: 4d tensor (B, hidden_dim, 1, chunk_size) Returns: torch.T
wenet/bin/export_onnx_bpu.py:840
↓ 1 callersMethodforward_attention
Compute attention context vector. Args: value (torch.Tensor): Transformed value, size (#batch, n_head, time2, d_k
wenet/efficient_conformer/attention.py:127
↓ 1 callersMethodforward_attention_decoder
Export interface for c++ call, forward decoder with multiple hypothesis from ctc prefix beam search and one encoder output Args:
wenet/transformer/asr_model.py:481
↓ 1 callersMethodforward_chunk
Forward just one chunk Args: xs (torch.Tensor): chunk input, with shape (b=1, time, mel-dim), where `time == (ch
wenet/squeezeformer/encoder.py:265
↓ 1 callersMethodforward_chunk
Forward just one chunk Args: xs (torch.Tensor): chunk input offset (int): current offset in encoder output time stam
wenet/efficient_conformer/encoder.py:300
↓ 1 callersMethodforward_chunk
Chunk-based context mode Frontend + Encoder + Decoder + Calc loss Args: speech: (Batch, Length, ...) speech_l
wenet/ctl_model/asr_model_ctl.py:154
↓ 1 callersMethodforward_chunk_by_chunk
Forward input chunk by chunk with chunk_size like a streaming fashion Here we should pay special attention to computation cache
wenet/transformer/encoder.py:306
↓ 1 callersMethodforward_decoder_one_step
( self, encoder_x: torch.Tensor, pre_t: torch.Tensor, cache: List[torch.Tensor] )
wenet/transducer/search/prefix_beam_search.py:31
↓ 1 callersMethodforward_encoder_chunk
Export interface for c++ call, give input chunk xs, and return output from time 0 to current chunk. Args: xs (torch.
wenet/transformer/asr_model.py:414
↓ 1 callersMethodforward_fsmn
(self, inputs: torch.Tensor, mask: torch.Tensor,
wenet/paraformer/attention.py:64
↓ 1 callersMethodforward_full
Full context mode Frontend + Encoder + Decoder + Calc loss Args: speech: (Batch, Length, ...) speech_lengths:
wenet/ctl_model/asr_model_ctl.py:104
↓ 1 callersMethodforward_layers
(self, x: torch.Tensor, tgt_mask: torch.Tensor, memory: torch.Tensor,
wenet/paraformer/layers.py:469
↓ 1 callersMethodforward_layers
( self, xs: torch.Tensor, att_mask: torch.Tensor, pos_emb: torch.Tensor,
wenet/LLM/decoder.py:126
↓ 1 callersMethodforward_layers
(self, x: torch.Tensor, tgt_mask: torch.Tensor, memory: torch.Tensor,
wenet/transformer/decoder.py:203
↓ 1 callersMethodforward_layers_checkpointed
(self, x: torch.Tensor, tgt_mask: torch.Tensor,
wenet/paraformer/layers.py:479
↓ 1 callersMethodforward_layers_checkpointed
(self, xs: torch.Tensor, att_mask: torch.Tensor,
wenet/LLM/decoder.py:151
↓ 1 callersMethodforward_layers_checkpointed
(self, x: torch.Tensor, tgt_mask: torch.Tensor,
wenet/transformer/decoder.py:212
↓ 1 callersMethodforward_paraformer
( self, speech: torch.Tensor, speech_lengths: torch.Tensor, )
wenet/paraformer/paraformer.py:294
↓ 1 callersMethodforward_qkv
( self, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor )
wenet/paraformer/attention.py:47
↓ 1 callersMethodforward_qkv
( self, query: torch.Tensor, key: torch.Tensor, value: torch.Tensor )
wenet/paraformer/attention.py:179
↓ 1 callersFunctionfsdp_save_model
(model, save_model_path, info_dict)
wenet/utils/fsdp_utils.py:70
↓ 1 callersFunctiongen_ctc_peak_time
(hyp: List[int], blank_id: int = 0)
wenet/utils/ctc_utils.py:51
↓ 1 callersFunctiongen_timestamps_from_peak
Args: peaks: ctc peaks time stamp max_duration: max_duration of the sentence frame_rate: frame rate of every time stamp,
wenet/utils/ctc_utils.py:63
↓ 1 callersFunctiongen_timestamps_from_peak
(cif_peaks: List[int], num_frames: int, frame_rate=0
wenet/paraformer/search.py:113
↓ 1 callersFunctiongenerate_config
(enc_session, ctc_session, args)
tools/onnx2horizonbin.py:262
↓ 1 callersFunctiongenerate_lexicon
Generate a lexicon from a word list and token_sym_table. Args: token_sym_table: Token symbol table that mapping token to token ids.
tools/k2/prepare_char.py:140
↓ 1 callersFunctiongenerate_tokens
Generate tokens from the given text file. Args: text_file: A file that contains text lines to generate tokens. Returns: R
tools/k2/prepare_char.py:165
↓ 1 callersFunctiongenerate_words
Generate words from the given text file. Args: text_file: A file that contains text lines to generate words. Returns: Ret
tools/k2/prepare_char.py:185
↓ 1 callersFunctiongenerator_textgrid
(maxtime, lines, output)
wenet/bin/alignment.py:37
↓ 1 callersFunctionget_args
()
tools/latency_metrics.py:34
↓ 1 callersFunctionget_args
()
tools/analyze_dataset.py:43
↓ 1 callersFunctionget_args
()
tools/onnx2horizonbin.py:357
↓ 1 callersFunctionget_args
()
tools/websocket/performance-ws.py:70
← previousnext →301–400 of 1,198, ranked by callers