A generator in python is a function that returns an iterator using the yield
keyword. This means we can use it with next()
or in a for
loop. This is common for dataloader
. It is an object you can (infinitely) pull from.
A generator in python is a function that returns an iterator using the yield
keyword. This means we can use it with next()
or in a for
loop. This is common for dataloader
. It is an object you can (infinitely) pull from.