MCPcopy Create free account
hub / github.com/espnet/espnet / zero_state

Method zero_state

espnet2/asr/decoder/rnn_decoder.py:152–153  ·  view source on GitHub ↗
(self, hs_pad)

Source from the content-addressed store, hash-verified

150 )
151
152 def zero_state(self, hs_pad):
153 return hs_pad.new_zeros(hs_pad.size(0), self.dunits)
154
155 def rnn_forward(self, ey, z_list, c_list, z_prev, c_prev):
156 if self.dtype == "lstm":

Callers 8

forwardMethod · 0.95
init_stateMethod · 0.95
time_sync_decodingMethod · 0.45
time_sync_decodingMethod · 0.45
time_sync_decodingMethod · 0.45

Calls 1

sizeMethod · 0.80

Tested by

no test coverage detected