xrange() was removed in Python 3 in favor or range() (#8371)
This commit is contained in:
parent
5699f60a88
commit
ae27e228c4
@ -20,7 +20,7 @@ a = np.zeros(n)
|
|||||||
def prepare(a):
|
def prepare(a):
|
||||||
print('@node[%d] run prepare function' % rank)
|
print('@node[%d] run prepare function' % rank)
|
||||||
# must take in reference and modify the reference
|
# must take in reference and modify the reference
|
||||||
for i in xrange(n):
|
for i in range(n):
|
||||||
a[i] = rank + i
|
a[i] = rank + i
|
||||||
|
|
||||||
print('@node[%d] before-allreduce: a=%s' % (rank, str(a)))
|
print('@node[%d] before-allreduce: a=%s' % (rank, str(a)))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user