Skip to content

Commit

Permalink
polish code.
Browse files Browse the repository at this point in the history
  • Loading branch information
hbwx24 committed Jul 27, 2021
1 parent 8b94458 commit 39aa575
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions python/paddle/fluid/variable_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,6 @@ def _getitem_impl_(var, item):

step = 1 if step is None else step

# if start is None and end is None and step == -1:
# reverse_axes.append(dim)
# continue

if start is None:
start = 0 if step > 0 else MAX_INTEGER
if end is None:
Expand Down

0 comments on commit 39aa575

Please sign in to comment.