This is possible, you can either use an existing implementation of a dataset that supports streaming control, or you can implement your own on top of any source that you have. Check the BasicMLDataSet and SQLNeuralDataSet interface for an example. You will need to implement a codec if you have a specific format. For CSV there is an implementation already, I have not tested if it is based on memory.
Remember, when you do this, that your data is completely transferred for each era and from my experience, which is a much more bottleneck than the actual calculation of the network.
source share