MCPcopy Create free account
hub / github.com/awslabs/gap-text2sql / forward

Method forward

rat-sql-gap/seq2struct/models/transformer.py:274–278  ·  view source on GitHub ↗

Pass the input (and mask) through each layer in turn.

(self, x, relation, mask)

Source from the content-addressed store, hash-verified

272 # TODO initialize using xavier
273
274 def forward(self, x, relation, mask):
275 "Pass the input (and mask) through each layer in turn."
276 for layer in self.layers:
277 x = layer(x, relation, mask)
278 return self.norm(x)
279
280
281# Adapted from The Annotated Transformer

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected