happy-wolf-7852
05/03/2024, 4:53 AMlimited-tomato-18674
05/03/2024, 7:51 AMself.data_chunks, you can do:
self.next(self.train, foreach='data_chunks')
and you will have N parallel train steps spawn with each of them receiving one chunk of the data. You don’t even need to declare N while starting the flow. Meaning, even if N was something that was calculated at runtime, the dynamic split would work.
Let me know if that helps answer your question or if there’s anything else I can help with!happy-wolf-7852
05/03/2024, 11:26 AMself.input
?limited-tomato-18674
05/03/2024, 2:18 PMN unique instances of the train function. Each instance will receive one chunk of the data in its self.input. Therefore for each instance of train self.input is just one chunk and you don’t have to access specific indices yourself.happy-wolf-7852
05/03/2024, 2:22 PM