From cf237a4cb6dc04d7ac0adb3d50d63770050140a9 Mon Sep 17 00:00:00 2001 From: Tomasz Kornuta Date: Fri, 22 May 2020 18:27:49 -0700 Subject: [PATCH] LGTM fixes: unused variable in the loop Signed-off-by: Tomasz Kornuta --- .../collections/cv/modules/trainables/feed_forward_network.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nemo/collections/cv/modules/trainables/feed_forward_network.py b/nemo/collections/cv/modules/trainables/feed_forward_network.py index 4340d4d1b387..13d913c0d7a7 100644 --- a/nemo/collections/cv/modules/trainables/feed_forward_network.py +++ b/nemo/collections/cv/modules/trainables/feed_forward_network.py @@ -145,7 +145,7 @@ def input_ports(self): # Prepare list of axes. axes = [AxisType(kind=AxisKind.Batch)] # Add the "additional dimensions". - for size in range(self._dimensions)[1:-1]: + for _ in range(self._dimensions)[1:-1]: axes.append(AxisType(kind=AxisKind.Any)) # Add the last axis: input_size axes.append(AxisType(kind=AxisKind.Any, size=self._input_size)) @@ -161,7 +161,7 @@ def output_ports(self): # Prepare list of axes. axes = [AxisType(kind=AxisKind.Batch)] # Add the "additional dimensions". - for size in range(self._dimensions)[1:-1]: + for _ in range(self._dimensions)[1:-1]: axes.append(AxisType(kind=AxisKind.Any)) # Add the last axis: input_size axes.append(AxisType(kind=AxisKind.Any, size=self._output_size))