Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/budzianowski/PyTorch-Beam-Search-Decoding
/ functions
Functions
6 in github.com/budzianowski/PyTorch-Beam-Search-Decoding
⨍
Functions
6
◇
Types & classes
2
↓ 2 callers
Method
eval
(self, alpha=1.0)
decode_beam.py:57
Method
__init__
Illustrative decoder
decode_beam.py:14
Method
__init__
:param hiddenstate: :param previousNode: :param wordId: :param logProb: :param length:
decode_beam.py:43
Function
beam_decode
:param target_tensor: target indexes tensor of shape [B, T] where B is the batch size and T is the maximum length of the output sentence :par
decode_beam.py:67
Method
forward
(self, input, hidden, not_used)
decode_beam.py:29
Function
greedy_decode
:param target_tensor: target indexes tensor of shape [B, T] where B is the batch size and T is the maximum length of the output sentence :par
decode_beam.py:163