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

Method max_positions

fairseq/models/fairseq_model.py:339–341  ·  view source on GitHub ↗

Maximum length supported by the model.

(self)

Source from the content-addressed store, hash-verified

337 return self.decoder.output_layer(features, **kwargs)
338
339 def max_positions(self):
340 """Maximum length supported by the model."""
341 return (self.encoder.max_positions(), self.decoder.max_positions())
342
343 def max_decoder_positions(self):
344 """Maximum length supported by the decoder."""

Callers

nothing calls this directly

Calls 1

max_positionsMethod · 0.45

Tested by

no test coverage detected