microsoft / CLAP

Learning audio concepts from natural language supervision
MIT License
455 stars 35 forks source link

bugfix: _batch_inference needs to always `yield` #30

Closed amihalik closed 5 months ago

amihalik commented 6 months ago

_generic_batch_inference returns a generator, but will not correctly return the last item. The currently implementation incorrectly returns the last item instead of yielding it.

bmartin1 commented 5 months ago

Thank you @amihalik