This fixes a bug where: when creating an iterator across the rows of the data, for any dataloader, the code would reassign the object data variable to the generator, which would throw an error when the iter function was called again. Instead, we assign the generator to a local variable.
This fixes a bug where: when creating an iterator across the rows of the data, for any dataloader, the code would reassign the object data variable to the generator, which would throw an error when the iter function was called again. Instead, we assign the generator to a local variable.