MCPcopy Create free account
hub / github.com/SymbioticLab/Oort / decode

Method decode

training/utils/decoder.py:182–197  ·  view source on GitHub ↗

Returns the argmax decoding given the probability matrix. Removes repeated elements in the sequence, as well as blanks. Arguments: probs: Tensor of character probabilities from the network. Expected shape of batch x seq_length x output_dim sizes(opti

(self, probs, sizes=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

test_modelFunction · 0.95

Calls 1

convert_to_stringsMethod · 0.95

Tested by 1

test_modelFunction · 0.76