Iterate over LazyBatch
Hi. I have a script just likethis one. I have a function that takes a single entry that I would like to use in theprocess_function. However, by callingmap(batched=True), in theprocess_functionI get a batch of entries which I do not seem to be able to iterate. I do not want to remove thebatched=Truebecause of efficiency. I wonder if I can iterate over the batch of entries which is of typeLazyBatch.
2023-02-06T13:23:18Z
Hi! Can you share the code that tries to iterate overLazyBatch(to help us debug the problem)?
2023-02-14T22:58:12Z
There was an issue on my part. My processing function only handles an example at a time.