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

Method output_layer

fairseq/models/fairseq_model.py:335–337  ·  view source on GitHub ↗

Project features to the default output size (typically vocabulary size).

(self, features, **kwargs)

Source from the content-addressed store, hash-verified

333 return features
334
335 def output_layer(self, features, **kwargs):
336 """Project features to the default output size (typically vocabulary size)."""
337 return self.decoder.output_layer(features, **kwargs)
338
339 def max_positions(self):
340 """Maximum length supported by the model."""

Callers

nothing calls this directly

Calls 1

output_layerMethod · 0.45

Tested by

no test coverage detected