py3 iterator compatibility

This commit is contained in:
Roy Frostig 2018-12-07 10:22:15 -08:00
parent db748a046f
commit 479f256abd

View File

@ -98,7 +98,7 @@ def eval_fun(fun, *args):
counter = it.count()
def fresh_var(ty):
return Var(counter.next(), ty)
return Var(next(counter), ty)
def gen_array_type(size):
# TODO(dougalm): randomize this