Really much appreciate this repository. However, for non-trivial batch sizes, the add_batch_fn caused a lot of slowdowns due to having to add every batch element sequentially.
In case somebody is interested, I alleviated this issue via this implementation. First, a new util function to add a batch via a single operation to the data storage.
Really much appreciate this repository. However, for non-trivial batch sizes, the
add_batch_fn
caused a lot of slowdowns due to having to add every batch element sequentially.In case somebody is interested, I alleviated this issue via this implementation. First, a new util function to add a batch via a single operation to the data storage.
Second, the outer function:
I thought about doing a pull request, but I'm too lazy right now to do a clean adaptation of this quick fix to the code base.