Show, Attend and Tell (Xu et al., 2015) captions images by attending to regions of a CNN feature map at each word. The context for a word is the attention-weighted average of the region features.
Implement soft_context(alpha, feats), the attention-weighted sum of the image features.
Multiply the weight vector by the feature matrix.
No results yet
Run your code to check it against the examples, or submit to run every test.