MCPcopy Create free account
hub / github.com/FunAudioLLM/Fun-ASR / argmax

Method argmax

ctc.py:52–60  ·  view source on GitHub ↗

argmax of frame activations Args: torch.Tensor hs_pad: 3d tensor (B, Tmax, eprojs) Returns: torch.Tensor: argmax applied 2d tensor (B, Tmax)

(self, hs_pad)

Source from the content-addressed store, hash-verified

50 return F.log_softmax(self.ctc_lo(hs_pad), dim=2)
51
52 def argmax(self, hs_pad):
53 """argmax of frame activations
54
55 Args:
56 torch.Tensor hs_pad: 3d tensor (B, Tmax, eprojs)
57 Returns:
58 torch.Tensor: argmax applied 2d tensor (B, Tmax)
59 """
60 return torch.argmax(self.ctc_lo(hs_pad), dim=2)

Callers 2

forwardMethod · 0.80
inference_llmMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected