After attention chooses which memories matter, the model reads an output representation of each memory, weighted by that attention. The sum is the evidence the answer is built from.
Implement memory_output(p, outputs), the attention-weighted sum of output embeddings.
Multiply the attention vector by the output matrix.
No results yet
Run your code to check it against the examples, or submit to run every test.