MCPcopy Create free account
hub / github.com/FLC777/GLAT / output_layer

Method output_layer

fairseq/models/fairseq_decoder.py:51–58  ·  view source on GitHub ↗

Project features to the default output size, e.g., vocabulary size. Args: features (Tensor): features returned by *extract_features*.

(self, features, **kwargs)

Source from the content-addressed store, hash-verified

49 raise NotImplementedError
50
51 def output_layer(self, features, **kwargs):
52 """
53 Project features to the default output size, e.g., vocabulary size.
54
55 Args:
56 features (Tensor): features returned by *extract_features*.
57 """
58 raise NotImplementedError
59
60 def get_normalized_probs(
61 self,

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected