Skip to content

Add tests for Unbatchify util #8076

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

assadyousuf
Copy link

@assadyousuf assadyousuf commented Apr 17, 2025

Adding tests for Unbatchify util. Seemed to be the only Util missing a test



def submit(self, input_item: any) -> Future:
"""Submits an item for processing and returns a Future."""
Copy link
Author

@assadyousuf assadyousuf Apr 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed to monkey patch Unbatchify.__ call __ because its a blocking call. Needed a workaround that provides a non blocking way to add items to the queue

@assadyousuf
Copy link
Author

@okhat Would love to get some eyes on this when you get a chance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant