litdata icon indicating copy to clipboard operation
litdata copied to clipboard

Optimizing dictionary data structures fails when using a partially initialized function

Open enrico-stauss opened this issue 1 year ago • 2 comments
trafficstars

When passing fn=partial(my_func, arg1=arg1) to optimize, the line linked below will yield only the keys of the dictionary that my_funcreturns. I avoided the issue by not using partial for my usecase but I`d consider this a bug.

Kind regards :)

https://github.com/Lightning-AI/litdata/blob/a09de861eadcb8389d0bc3065a901113c9e72a5f/src/litdata/processing/functions.py#L138

enrico-stauss avatar May 06 '24 18:05 enrico-stauss

Hi! thanks for your contribution!, great first issue!

github-actions[bot] avatar May 06 '24 18:05 github-actions[bot]

Hey @enrico-stauss, Could you try out the latest version of litdata ?

tchaton avatar May 07 '24 19:05 tchaton

This has been fixed.

tchaton avatar Jul 12 '24 08:07 tchaton