@application
    def apply(self, **kwargs):
        preprocessed_attended = self.attention.preprocess(
            kwargs[self.attended_name])
        return self.do_apply(
            **dict_union(kwargs,
                         {self.preprocessed_attended_name:
                          preprocessed_attended}))
Preprocess a sequence attending the attended context at every step.
dataset/ETHPy150Open mila-udem/blocks-extras/blocks_extras/bricks/attention2.py/AttentionRecurrent.apply