src/transformers/models/lxmert/modeling_lxmert.py/LxmertVisualObjHead/forward
class LxmertVisualObjHead:    def forward(self, hidden_states):
        hidden_states = self.transform(hidden_states)
        output = {}
        for key in self.visual_losses:
            output[key] = self.decoder_dict[key](hidden_states)
        return output