line 83 produces error

TypeError: can only concatenate list (not "range") to list
This commit is contained in:
Shadi Rahimian 2019-03-26 15:28:09 +01:00 committed by GitHub
parent 6231d0802d
commit 0a0e5cb3c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,8 +80,7 @@ def main(argv):
if q > 1:
raise app.UsageError('N must be larger than the batch size.')
orders = ([1.25, 1.5, 1.75, 2., 2.25, 2.5, 3., 3.5, 4., 4.5] + range(5, 64) +
[128, 256, 512])
orders = [1.25, 1.5, 1.75, 2., 2.25, 2.5, 3., 3.5, 4., 4.5] + list(range(5, 64)) + [128, 256, 512]
steps = int(math.ceil(FLAGS.epochs * FLAGS.N / FLAGS.batch_size))