From 82db35530f327afbaea99f249a23369faba30513 Mon Sep 17 00:00:00 2001 From: Thomas Werkmeister Date: Tue, 23 Jul 2019 19:33:56 +0200 Subject: [PATCH] unused var --- layers/common_layers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layers/common_layers.py b/layers/common_layers.py index 77ce4f4a..bc353be3 100644 --- a/layers/common_layers.py +++ b/layers/common_layers.py @@ -234,10 +234,10 @@ class Attention(nn.Module): def forward(self, query, inputs, processed_inputs, mask): if self.location_attention: - attention, processed_query = self.get_location_attention( + attention, _ = self.get_location_attention( query, processed_inputs) else: - attention, processed_query = self.get_attention( + attention, _ = self.get_attention( query, processed_inputs) # apply masking if mask is not None: