Undefined name: from six.moves import xrange

[flake8](http://flake8.pycqa.org) testing of https://github.com/google/jax on Python 3.7.1

$ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__
```
./examples/resnet50.py:124:12: F821 undefined name 'xrange'
  for i in xrange(num_steps):
           ^
1    F821 undefined name 'xrange'
1
```
This commit is contained in:
cclauss 2018-11-22 17:50:50 +01:00 committed by GitHub
parent 7a313bf622
commit c3c64138a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,8 @@ from __future__ import print_function
import numpy.random as npr
from six.moves import xrange
import jax.numpy as np
from jax import jit, grad
from jax.experimental import minmax