MCPcopy Create free account

hub / github.com/athena-team/athena / functions

Functions3,518 in github.com/athena-team/athena

↓ 12,351 callersMethodget
Returns the value of `key` if it exists, else `default`.
athena/utils/hparam.py:605
↓ 3,784 callersFunctionstatus_check
runtime/core/cppflow/context.h:17
↓ 3,784 callersFunctionstatus_check
runtime/server/x86/cppflow/context.h:17
↓ 695 callersMethoddata
runtime/core/frontend/wav.h:128
↓ 677 callersMethoddata
runtime/server/x86/frontend/wav.h:128
↓ 189 callersMethodshape
runtime/core/cppflow/tensor.h:185
↓ 160 callersMethodjoin
runtime/core/utils/thread_pool.h:57
↓ 128 callersMethodadd_hparam
Adds {name, value} pair to hyperparameters. Args: name: Name of the hyperparameter. value: Value of the hyperparamete
athena/utils/hparam.py:422
↓ 116 callersFunctionrange
runtime/core/cppflow/raw_ops.h:16892
↓ 103 callersMethodappend
(self, hp)
athena/utils/hparam.py:682
↓ 85 callersFunctionprint
runtime/core/cppflow/raw_ops.h:15653
↓ 45 callersMethodclear
runtime/core/decoder/ctc_decodable.h:37
↓ 44 callersFunctionregister_and_parse_hparams
register default config and parse
athena/utils/hparam.py:688
↓ 41 callersMethodparse
Override existing hyperparameter values, parsing new values from a string. See parse_values for more detail on the allowed format for values.
athena/utils/hparam.py:492
↓ 38 callersMethodclear
runtime/server/x86/decoder/ctc_decodable.h:37
↓ 33 callersMethodvalues
Return the hyperparameter values as a Python dictionary. Returns: A dictionary with hyperparameter names as keys. The values are
athena/utils/hparam.py:596
↓ 31 callersFunctioncreate_multihead_mask
Generate a square mask for the sequence for mult-head attention. The masked positions are filled with float(1.0). Unmasked positions are
athena/utils/misc.py:69
↓ 28 callersMethodinstantiate
(self)
athena/utils/hparam.py:677
↓ 28 callersMethodparams
Set params. Args: config: contains the following fifteen optional parameters: 'window_length': Window length in seco
athena/transform/feats/mfcc.py:47
↓ 26 callersFunctionmax
runtime/core/cppflow/raw_ops.h:12817
↓ 26 callersFunctionpow
runtime/core/cppflow/raw_ops.h:15499
↓ 24 callersMethodresult
returns word-error-rate calculated as num_err/num_total
athena/metrics.py:56
↓ 22 callersMethodValue
runtime/core/fst/athena_fst.h:166
↓ 21 callersFunctionmin
runtime/core/cppflow/raw_ops.h:13378
↓ 20 callersFunctionsum
runtime/core/cppflow/raw_ops.h:23960
↓ 19 callersMethodValue
runtime/server/x86/fst/athena_fst.h:166
↓ 19 callersMethodargmax
argmax for the Conformer CTC model Args: samples: the data source to be decoded hparams: decoding configs ar
athena/models/asr/speech_conformer_ctc.py:187
↓ 19 callersMethodencode
convert a sentence to a list of ids, with special tokens added.
athena/data/text_featurizer.py:99
↓ 17 callersMethodset_hparam
Set the value of an existing hyperparameter. This function verifies that the type of the value matches the type of the existing hyper
athena/utils/hparam.py:448
↓ 17 callersFunctionsqrt
runtime/core/cppflow/raw_ops.h:22467
↓ 16 callersFunctionlog
runtime/core/cppflow/raw_ops.h:11783
↓ 15 callersMethodupdate_state
Accumulate errors and counts
athena/metrics.py:49
↓ 14 callersMethodas_dataset
return tf.data.Dataset object
athena/data/datasets/base.py:166
↓ 14 callersMethodmodel
runtime/core/cppflow/model.h:53
↓ 13 callersMethod__init__
(self, logits_time_major=False, blank_index=-1, name="CTCLoss")
athena/loss.py:29
↓ 13 callersFunctioncos
runtime/core/cppflow/raw_ops.h:5034
↓ 13 callersMethoddecode
decode interface
athena/models/base.py:71
↓ 13 callersMethodload_model
load model
athena/data/text_featurizer.py:44
↓ 13 callersMethodprepare_samples
for special data prepare carefully: do not change the shape of samples
athena/models/base.py:60
↓ 12 callersMethod__init__
(self, filters, kernel_size, stride)
athena/layers/commons.py:439
↓ 12 callersMethodconfig
config property
athena/transform/feats/base_frontend.py:41
↓ 12 callersFunctionlog_add
Stable log add
athena/tools/ctc_decoder.py:27
↓ 12 callersFunctionread_wav
Read wav from file. Can be called directly without ReadWav class. Examples:: >>> audio_data, sample_rate = read_wav('test.wav', audio_ch
athena/transform/feats/read_wav.py:94
↓ 12 callersMethodreset_metrics
reset the metrics
athena/models/base.py:55
↓ 10 callersFunctionbuild_model_from_jsonfile
creates model using configurations in json, load from checkpoint if previous models exist in checkpoint dir
athena/main.py:147
↓ 10 callersFunctionexit
runtime/core/cppflow/raw_ops.h:7640
↓ 10 callersFunctioninsert_sos_in_labels
(labels, sos)
athena/utils/misc.py:33
↓ 10 callersFunctionsub_vector
return subvector */
athena/transform/feats/ops/kernels/support_functions.cc:620
↓ 9 callersFunctionceil
runtime/core/cppflow/raw_ops.h:3991
↓ 9 callersMethoddecode_to_list
convert a list of ids to a list of symbols
athena/data/text_featurizer.py:92
↓ 9 callersFunctionmax
runtime/server/x86/cppflow/raw_ops.h:12817
↓ 9 callersFunctionsin
runtime/core/cppflow/raw_ops.h:20107
↓ 8 callersFunctionVecVec
athena/transform/feats/ops/kernels/support_functions.cc:681
↓ 8 callersMethod_pad_and_reshape
Args: outputs: true labels, shape: [batch, y_steps, feat_dim] ori_lens: scalar Returns:: reshape
athena/models/tts/tacotron2.py:227
↓ 8 callersFunctionctc_prefix_beam_decoder
CTC prefix beam search inner implementation reference: https://github.com/wenet-e2e/wenet/blob/main/wenet/transformer/asr_model.py. A
athena/tools/ctc_decoder.py:38
↓ 8 callersMethodforward
do NN LM forward computation, for both train and decode.
athena/models/lm/nn_lm.py:37
↓ 8 callersFunctiongenerate_square_subsequent_mask
Generate a square mask for the sequence. The masked positions are filled with float(1.0). Unmasked positions are filled with float(0.0).
athena/utils/misc.py:61
↓ 8 callersMethodoverride_from_dict
Override existing hyperparameter values, parsing new values from a dictionary. Args: values_dict: Dictionary of name:value pairs.
athena/utils/hparam.py:522
↓ 7 callersMethodGetCtcOutputSize
runtime/core/inference/tensor_model.h:89
↓ 7 callersMethodGetCtcOutputSize
runtime/server/x86/inference/tensor_model.h:89
↓ 7 callersMethodcompute_logit_length
used for get logit length
athena/models/asr/speech_conformer.py:156
↓ 7 callersFunctionexp
runtime/core/cppflow/raw_ops.h:7664
↓ 7 callersFunctionmask_finished_preds
for the finished hyps, mask all the selected word to eos Args: preds: shape:[batch_size*beam_size, beam_size] flag:
athena/utils/misc.py:375
↓ 7 callersFunctionmask_finished_scores
for the score of finished hyps, mask the first to 0.0 and the others -inf Args: scores: candidate scores at current step s
athena/utils/misc.py:349
↓ 7 callersFunctionmin
runtime/server/x86/cppflow/raw_ops.h:13378
↓ 6 callersMethodGetList
runtime/core/utils/hash_list_inl.h:58
↓ 6 callersMethodGetList
runtime/server/x86/utils/hash_list_inl.h:58
↓ 6 callersMethod__init__
( self, W_regularizer=None, u_regularizer=None, b_regularizer=None, W_
athena/layers/attention.py:224
↓ 6 callersMethodcompute_logit_length
used for get logit length
athena/models/asr/speech_transformer.py:159
↓ 6 callersMethoddevice
runtime/core/cppflow/tensor.h:205
↓ 6 callersFunctiongated_linear_layer
(inputs, gates, name=None)
athena/utils/misc.py:394
↓ 6 callersMethodget_loss
get loss
athena/models/lm/nn_lm.py:55
↓ 6 callersMethodinitialize_devices
initialize hvd devices, should be called firstly
athena/solver.py:584
↓ 6 callersFunctionparse_config
parse config
athena/main.py:131
↓ 6 callersMethodto_json
Serializes the hyperparameters into JSON. Args: indent: If a non-negative integer, JSON array elements and object members
athena/utils/hparam.py:545
↓ 5 callersMethodDim
athena/transform/feats/ops/kernels/pitch.h:158
↓ 5 callersMethodDone
runtime/core/fst/athena_fst.h:143
↓ 5 callersMethodDone
runtime/server/x86/fst/athena_fst.h:143
↓ 5 callersFunctionFFT
athena/transform/feats/ops/kernels/BaseLib.cc:22
↓ 5 callersMethodFinal
runtime/core/fst/athena_fst.h:110
↓ 5 callersMethodFinal
runtime/server/x86/fst/athena_fst.h:110
↓ 5 callersFunctionLogAdd
runtime/core/utils/utils.cc:27
↓ 5 callersFunctionLogAdd
runtime/server/x86/utils/utils.cc:27
↓ 5 callersMethodNext
runtime/core/fst/athena_fst.h:149
↓ 5 callersMethodNext
runtime/server/x86/fst/athena_fst.h:149
↓ 5 callersMethodResample
athena/transform/feats/ops/kernels/resample.cc:112
↓ 5 callersMethod__init__
(self, model, optimizer, sample_signature, eval_sample_signature=None, config=None, **kwargs)
athena/solver.py:573
↓ 5 callersMethod__init__
(self, config=None, beta_1=0.9, beta_2=0.999, epsilon=1e-7, amsgrad=False, name="WarmUpAdam",
athena/utils/learning_rate.py:69
↓ 5 callersMethodcompute_logit_length
used for get logit length
athena/models/asr/speech_u2.py:146
↓ 5 callersMethodcompute_nbest_avg
Restore n-best avg checkpoint, if 'sort_by_time' is False, the n-best order is sorted by 'sort_by'; If 'sort_by_time' is True, select
athena/utils/checkpoint.py:155
↓ 5 callersFunctioncreate_multihead_mask_u2
Generate a square mask for the sequence for mult-head attention. The masked positions are filled with bool(True). Unmasked positions are
athena/utils/misc.py:213
↓ 5 callersFunctionget_wave_file_length
get the wave file length(duration) in ms Args: wave_file: the path of wave file Returns: wav_length: the length(ms) of the w
athena/utils/misc.py:420
↓ 5 callersMethodsave_cmvn
save cmvn variables determined by variable_list to file Args: variable_list (list): e.g. ["speaker", "mean", "var"]
athena/data/feature_normalizer.py:198
↓ 4 callersMethodGetFrame
runtime/core/frontend/feature_pipeline.cc:64
↓ 4 callersMethodGetFrame
runtime/server/x86/frontend/feature_pipeline.cc:64
↓ 4 callersMethodInitialize
athena/transform/feats/ops/kernels/fbank.cc:40
↓ 4 callersMethodNccfWindowSize
athena/transform/feats/ops/kernels/pitch.h:110
↓ 4 callersMethodNumFramesReady
runtime/core/decoder/ctc_decodable.h:69
↓ 4 callersMethodNumFramesReady
runtime/server/x86/decoder/ctc_decodable.h:69
↓ 4 callersMethod__init__
(self, name="Accuracy", rank_size=1)
athena/metrics.py:37
next →1–100 of 3,518, ranked by callers