MCPcopy Create free account
hub / github.com/HA-Transformer/MAT / get_normalized_probs

Method get_normalized_probs

fairseq/models/fairseq_decoder.py:54–70  ·  view source on GitHub ↗

Get normalized probabilities (or log probs) from a net's output.

(self, net_output, log_probs, sample)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

generateMethod · 0.45
_decode_oneMethod · 0.45

Calls 1

get_log_probMethod · 0.80

Tested by

no test coverage detected