Closed zllrunning closed 5 years ago
It will always iter the first batch if we do like this.
while idx + batch_size <= len(loader.dataset): batch, _ = iter(loader).next()
Maybe we should execute iter(loader) outside the while loop.
iter(loader)
It will always iter the first batch if we do like this.
Maybe we should execute
iter(loader)
outside the while loop.