Skip to content

Commit

Permalink
Merge pull request fastai#191 from aakashns/patch-3
Browse files Browse the repository at this point in the history
remove an unused local variable
  • Loading branch information
jph00 authored Mar 6, 2018
2 parents 762f0b6 + 0711e31 commit f08d2fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastai/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def to_gpu(x, *args, **kwargs):
def noop(*args, **kwargs): return

def split_by_idxs(seq, idxs):
last, sl = 0, len(seq)
last = 0
for idx in idxs:
yield seq[last:idx]
last = idx
Expand Down

0 comments on commit f08d2fa

Please sign in to comment.