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

Method reorder_encoder_out

fairseq/models/lightconv.py:252–269  ·  view source on GitHub ↗

Reorder encoder output according to *new_order*. Args: encoder_out: output from the ``forward()`` method new_order (LongTensor): desired order Returns: *encoder_out* rearranged according to *new_order*

(self, encoder_out, new_order)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected