Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/athena-team/athena
/ functions
Functions
3,518 in github.com/athena-team/athena
⨍
Functions
3,518
◇
Types & classes
359
↳
Endpoints
1
↓ 12,351 callers
Method
get
Returns the value of `key` if it exists, else `default`.
athena/utils/hparam.py:605
↓ 3,784 callers
Function
status_check
runtime/core/cppflow/context.h:17
↓ 3,784 callers
Function
status_check
runtime/server/x86/cppflow/context.h:17
↓ 695 callers
Method
data
runtime/core/frontend/wav.h:128
↓ 677 callers
Method
data
runtime/server/x86/frontend/wav.h:128
↓ 189 callers
Method
shape
runtime/core/cppflow/tensor.h:185
↓ 160 callers
Method
join
runtime/core/utils/thread_pool.h:57
↓ 128 callers
Method
add_hparam
Adds {name, value} pair to hyperparameters. Args: name: Name of the hyperparameter. value: Value of the hyperparamete
athena/utils/hparam.py:422
↓ 116 callers
Function
range
runtime/core/cppflow/raw_ops.h:16892
↓ 103 callers
Method
append
(self, hp)
athena/utils/hparam.py:682
↓ 85 callers
Function
print
runtime/core/cppflow/raw_ops.h:15653
↓ 45 callers
Method
clear
runtime/core/decoder/ctc_decodable.h:37
↓ 44 callers
Function
register_and_parse_hparams
register default config and parse
athena/utils/hparam.py:688
↓ 41 callers
Method
parse
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 callers
Method
clear
runtime/server/x86/decoder/ctc_decodable.h:37
↓ 33 callers
Method
values
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 callers
Function
create_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 callers
Method
instantiate
(self)
athena/utils/hparam.py:677
↓ 28 callers
Method
params
Set params. Args: config: contains the following fifteen optional parameters: 'window_length': Window length in seco
athena/transform/feats/mfcc.py:47
↓ 26 callers
Function
max
runtime/core/cppflow/raw_ops.h:12817
↓ 26 callers
Function
pow
runtime/core/cppflow/raw_ops.h:15499
↓ 24 callers
Method
result
returns word-error-rate calculated as num_err/num_total
athena/metrics.py:56
↓ 22 callers
Method
Value
runtime/core/fst/athena_fst.h:166
↓ 21 callers
Function
min
runtime/core/cppflow/raw_ops.h:13378
↓ 20 callers
Function
sum
runtime/core/cppflow/raw_ops.h:23960
↓ 19 callers
Method
Value
runtime/server/x86/fst/athena_fst.h:166
↓ 19 callers
Method
argmax
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 callers
Method
encode
convert a sentence to a list of ids, with special tokens added.
athena/data/text_featurizer.py:99
↓ 17 callers
Method
set_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 callers
Function
sqrt
runtime/core/cppflow/raw_ops.h:22467
↓ 16 callers
Function
log
runtime/core/cppflow/raw_ops.h:11783
↓ 15 callers
Method
update_state
Accumulate errors and counts
athena/metrics.py:49
↓ 14 callers
Method
as_dataset
return tf.data.Dataset object
athena/data/datasets/base.py:166
↓ 14 callers
Method
model
runtime/core/cppflow/model.h:53
↓ 13 callers
Method
__init__
(self, logits_time_major=False, blank_index=-1, name="CTCLoss")
athena/loss.py:29
↓ 13 callers
Function
cos
runtime/core/cppflow/raw_ops.h:5034
↓ 13 callers
Method
decode
decode interface
athena/models/base.py:71
↓ 13 callers
Method
load_model
load model
athena/data/text_featurizer.py:44
↓ 13 callers
Method
prepare_samples
for special data prepare carefully: do not change the shape of samples
athena/models/base.py:60
↓ 12 callers
Method
__init__
(self, filters, kernel_size, stride)
athena/layers/commons.py:439
↓ 12 callers
Method
config
config property
athena/transform/feats/base_frontend.py:41
↓ 12 callers
Function
log_add
Stable log add
athena/tools/ctc_decoder.py:27
↓ 12 callers
Function
read_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 callers
Method
reset_metrics
reset the metrics
athena/models/base.py:55
↓ 10 callers
Function
build_model_from_jsonfile
creates model using configurations in json, load from checkpoint if previous models exist in checkpoint dir
athena/main.py:147
↓ 10 callers
Function
exit
runtime/core/cppflow/raw_ops.h:7640
↓ 10 callers
Function
insert_sos_in_labels
(labels, sos)
athena/utils/misc.py:33
↓ 10 callers
Function
sub_vector
return subvector */
athena/transform/feats/ops/kernels/support_functions.cc:620
↓ 9 callers
Function
ceil
runtime/core/cppflow/raw_ops.h:3991
↓ 9 callers
Method
decode_to_list
convert a list of ids to a list of symbols
athena/data/text_featurizer.py:92
↓ 9 callers
Function
max
runtime/server/x86/cppflow/raw_ops.h:12817
↓ 9 callers
Function
sin
runtime/core/cppflow/raw_ops.h:20107
↓ 8 callers
Function
VecVec
athena/transform/feats/ops/kernels/support_functions.cc:681
↓ 8 callers
Method
_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 callers
Function
ctc_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 callers
Method
forward
do NN LM forward computation, for both train and decode.
athena/models/lm/nn_lm.py:37
↓ 8 callers
Function
generate_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 callers
Method
override_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 callers
Method
GetCtcOutputSize
runtime/core/inference/tensor_model.h:89
↓ 7 callers
Method
GetCtcOutputSize
runtime/server/x86/inference/tensor_model.h:89
↓ 7 callers
Method
compute_logit_length
used for get logit length
athena/models/asr/speech_conformer.py:156
↓ 7 callers
Function
exp
runtime/core/cppflow/raw_ops.h:7664
↓ 7 callers
Function
mask_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 callers
Function
mask_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 callers
Function
min
runtime/server/x86/cppflow/raw_ops.h:13378
↓ 6 callers
Method
GetList
runtime/core/utils/hash_list_inl.h:58
↓ 6 callers
Method
GetList
runtime/server/x86/utils/hash_list_inl.h:58
↓ 6 callers
Method
__init__
( self, W_regularizer=None, u_regularizer=None, b_regularizer=None, W_
athena/layers/attention.py:224
↓ 6 callers
Method
compute_logit_length
used for get logit length
athena/models/asr/speech_transformer.py:159
↓ 6 callers
Method
device
runtime/core/cppflow/tensor.h:205
↓ 6 callers
Function
gated_linear_layer
(inputs, gates, name=None)
athena/utils/misc.py:394
↓ 6 callers
Method
get_loss
get loss
athena/models/lm/nn_lm.py:55
↓ 6 callers
Method
initialize_devices
initialize hvd devices, should be called firstly
athena/solver.py:584
↓ 6 callers
Function
parse_config
parse config
athena/main.py:131
↓ 6 callers
Method
to_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 callers
Method
Dim
athena/transform/feats/ops/kernels/pitch.h:158
↓ 5 callers
Method
Done
runtime/core/fst/athena_fst.h:143
↓ 5 callers
Method
Done
runtime/server/x86/fst/athena_fst.h:143
↓ 5 callers
Function
FFT
athena/transform/feats/ops/kernels/BaseLib.cc:22
↓ 5 callers
Method
Final
runtime/core/fst/athena_fst.h:110
↓ 5 callers
Method
Final
runtime/server/x86/fst/athena_fst.h:110
↓ 5 callers
Function
LogAdd
runtime/core/utils/utils.cc:27
↓ 5 callers
Function
LogAdd
runtime/server/x86/utils/utils.cc:27
↓ 5 callers
Method
Next
runtime/core/fst/athena_fst.h:149
↓ 5 callers
Method
Next
runtime/server/x86/fst/athena_fst.h:149
↓ 5 callers
Method
Resample
athena/transform/feats/ops/kernels/resample.cc:112
↓ 5 callers
Method
__init__
(self, model, optimizer, sample_signature, eval_sample_signature=None, config=None, **kwargs)
athena/solver.py:573
↓ 5 callers
Method
__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 callers
Method
compute_logit_length
used for get logit length
athena/models/asr/speech_u2.py:146
↓ 5 callers
Method
compute_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 callers
Function
create_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 callers
Function
get_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 callers
Method
save_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 callers
Method
GetFrame
runtime/core/frontend/feature_pipeline.cc:64
↓ 4 callers
Method
GetFrame
runtime/server/x86/frontend/feature_pipeline.cc:64
↓ 4 callers
Method
Initialize
athena/transform/feats/ops/kernels/fbank.cc:40
↓ 4 callers
Method
NccfWindowSize
athena/transform/feats/ops/kernels/pitch.h:110
↓ 4 callers
Method
NumFramesReady
runtime/core/decoder/ctc_decodable.h:69
↓ 4 callers
Method
NumFramesReady
runtime/server/x86/decoder/ctc_decodable.h:69
↓ 4 callers
Method
__init__
(self, name="Accuracy", rank_size=1)
athena/metrics.py:37
next →
1–100 of 3,518, ranked by callers