Skip to content

Commit

Permalink
xrange() was removed in Python 3 in favor or range() (#8371)
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss authored Oct 27, 2022
1 parent 5699f60 commit ae27e22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rabit/guide/lazy_allreduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
def prepare(a):
print('@node[%d] run prepare function' % rank)
# must take in reference and modify the reference
for i in xrange(n):
for i in range(n):
a[i] = rank + i

print('@node[%d] before-allreduce: a=%s' % (rank, str(a)))
Expand Down

0 comments on commit ae27e22

Please sign in to comment.