Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HawkAaron/RNN-Transducer
/ functions
Functions
82 in github.com/HawkAaron/RNN-Transducer
⨍
Functions
82
◇
Types & classes
17
↓ 6 callers
Method
backward
(self, req, out_grad, in_data, out_data, in_grad, aux)
rnnt_np.py:110
↓ 6 callers
Function
logsumexp
Stable log sum exp.
ctc_decoder.py:27
↓ 5 callers
Method
joint
`f`: encoder lstm output (B,T,U,2H) expanded `g`: decoder lstm output (B,T,U,H) expanded NOTE f and g must have the same size except
model.py:56
↓ 3 callers
Method
decode
(self, xs, hidden)
model2012.py:21
↓ 2 callers
Method
_dump
(self)
DataLoader.py:59
↓ 2 callers
Function
convert
(inputs, labels, ctx)
DataLoader.py:30
↓ 2 callers
Function
remap
(y, blank)
eval.py:51
↓ 1 callers
Method
__init__
(self, vocab_size, num_hidden, num_layers, dropout=0, bidirectional=False)
model2012.py:10
↓ 1 callers
Method
__init__
(self, blank=0, weight=None, **kwargs)
rnnt_np.py:134
↓ 1 callers
Method
__init__
(self, vocab_size, num_hidden, num_layers, dropout=0, bidirectional=False)
model.py:11
↓ 1 callers
Method
_distance
(self, y, t)
DataLoader.py:106
↓ 1 callers
Method
_step
(self, inputs, hidden, enc_out)
seq2seq/decoder.py:47
↓ 1 callers
Function
backward_pass
(log_probs, labels, blank)
rnnt_np.py:23
↓ 1 callers
Method
beam_search
(self, xs, W)
model.py:33
↓ 1 callers
Function
compute_gradient
(log_probs, alphas, betas, labels, blank)
rnnt_np.py:43
↓ 1 callers
Function
decode
()
eval.py:62
↓ 1 callers
Function
distance
(y, t, blank=rephone[0])
eval.py:50
↓ 1 callers
Function
end_pad_concat
(inputs)
DataLoader.py:22
↓ 1 callers
Function
evaluate
(ctx=context)
train_att.py:71
↓ 1 callers
Function
evaluate
(ctx=context)
train.py:80
↓ 1 callers
Function
evaluate
(ctx=context)
train_ctc.py:87
↓ 1 callers
Function
forward_pass
(log_probs, labels, blank)
rnnt_np.py:4
↓ 1 callers
Method
greedy_decode
(self, xs)
model.py:26
↓ 1 callers
Function
log_aplusb
(a, b)
model2012.py:158
↓ 1 callers
Function
log_aplusb
(a, b)
model.py:185
↓ 1 callers
Function
loss_test
()
rnnt_np.py:174
↓ 1 callers
Function
make_new_beam
()
ctc_decoder.py:23
↓ 1 callers
Function
train
()
train_att.py:78
↓ 1 callers
Function
train
()
train.py:87
↓ 1 callers
Function
train
()
train_ctc.py:95
↓ 1 callers
Function
transduce
Args: log_probs: 3D array with shape [input len, output len + 1, vocab size] labels: 1D array with shape [output ti
rnnt_np.py:57
↓ 1 callers
Function
transduce_batch
(log_probs, labels, flen, glen, blank=0)
rnnt_np.py:73
↓ 1 callers
Function
zero_pad_concat
(inputs)
DataLoader.py:14
Method
__init__
(self, batch_first=True, blank_label=0, weight=None, **kwargs)
rnnt_mx.py:5
Method
__init__
(self, vocab_size, num_hidden, num_layers, dropout=0, blank=0, bidirectional=False)
model2012.py:27
Method
__init__
(self, seq=None, hidden=None, blank=0)
model2012.py:163
Method
__init__
(self, layout='NTC', label_layout='NT', weight=None, **kwargs)
train_ctc.py:14
Method
__init__
(self, dtype, batch_size=1, ctx=mx.cpu(0), attention=False)
DataLoader.py:39
Method
__init__
(self, blank=0)
DataLoader.py:79
Method
__init__
(self, blank)
rnnt_np.py:93
Method
__init__
(self, blank=0)
rnnt_np.py:117
Method
__init__
(self, vocab_size, num_hidden, num_layers, dropout=0, blank=0, bidirectional=False)
model.py:40
Method
__init__
(self, seq=None, hidden=None, blank=0)
model.py:190
Method
__init__
(self, vocab_size, hidden_size, num_layers, sample_rate, **kwargs)
seq2seq/decoder.py:8
Method
__init__
(self, vocab_size, hidden_size, num_layers, dropout, sample_rate=0.4, **kwargs)
seq2seq/seq2seq.py:11
Method
__init__
(self, **kwargs)
seq2seq/attention.py:5
Method
__init__
(self, hidden_size, num_layers, dropout, **kwargs)
seq2seq/encoder.py:6
Method
__iter__
(self)
DataLoader.py:68
Method
__len__
(self)
DataLoader.py:56
Method
__str__
(self)
model2012.py:176
Method
__str__
(self)
model.py:203
Method
beam_search
`xs`: acoustic model outputs NOTE only support one sequence (batch size = 1)
model2012.py:76
Method
beam_search
`xs`: acoustic model outputs NOTE only support one sequence (batch size = 1)
model.py:100
Method
create_operator
(self, ctx, shapes, dtypes)
rnnt_np.py:130
Function
decode
Performs inference for the given output probabilities. Arguments: probs: The output probabilities (e.g. log post-softmax) for each
ctc_decoder.py:38
Method
decode
(self, xs, hidden)
model.py:22
Method
forward
(self, xs)
model2012.py:17
Method
forward
(self, xs, ys, xlen, ylen)
model2012.py:40
Method
forward
`log_ytu`: am & pm joint probability, layout 'BTUV' `y`: label sequence (blank, y1, ..., yU), layout 'BU' `flen`: acoustic mo
rnnt_np.py:96
Method
forward
(self, xs)
model.py:18
Method
forward
(self, xs, ys, xlen, ylen)
model.py:65
Method
forward
`target`: (batch, length) `enc_out`: Encoder output, (batch, length, hidden_size) `enc_hid`: last hidden state of encoder
seq2seq/decoder.py:22
Method
forward
`inputs`: (batch, length, dim) `targets`: (batch, length)
seq2seq/seq2seq.py:19
Method
forward
(self, hidden, enc_out)
seq2seq/attention.py:8
Method
forward
`inputs`: (batch, length, input_size) `hidden`: Initial hidden state (num_layer, batch_size, hidden_size)
seq2seq/encoder.py:13
Method
forward_step
`label`: int
model2012.py:81
Method
forward_step
`label`: int
model.py:106
Method
get
(self, err=True)
DataLoader.py:95
Method
getAll
(self, err=True)
DataLoader.py:102
Method
greedy_decode
TODO batch support / gpu support `weight`: acoustic score weight
model2012.py:54
Method
greedy_decode
(self, xs)
model.py:81
Method
hybrid_forward
(self, F, pred, label, pred_lengths, label_lengths)
rnnt_mx.py:11
Method
hybrid_forward
(self, F, pred, label, pred_lengths=None, label_lengths=None)
train_ctc.py:24
Method
hybrid_forward
(self, F, log_ytu, label, flen, glen)
rnnt_np.py:139
Method
infer_shape
(self, in_shapes)
rnnt_np.py:127
Method
isprefix
(a, b)
model2012.py:87
Method
isprefix
(a, b)
model.py:112
Function
joint_test
()
rnnt_np.py:146
Method
list_arguments
(self)
rnnt_np.py:121
Method
list_outputs
(self)
rnnt_np.py:124
Function
seperate_test
()
rnnt_np.py:157
Method
update
(self, pred, label, xlen, ylen)
DataLoader.py:86