Skip to content

Commit

Permalink
LGTM fixes: unused variable in the loop
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Kornuta <[email protected]>
  • Loading branch information
tkornuta-nvidia committed May 23, 2020
1 parent eee5915 commit cf237a4
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand All @@ -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))
Expand Down

0 comments on commit cf237a4

Please sign in to comment.