Closed liunux4odoo closed 8 months ago
All modified and coverable lines are covered by tests :white_check_mark:
Comparison is base (
c7f3de4
) 89.02% compared to head (c4d53a2
) 88.62%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Known issue: If the caller crashes, the generator will leak.
What do these changes do?
Generators can not be transferred directly between actors, users must wrap it to a iterator object referencing to the code of xinference ModelActor. But the wrapping codes are complex and need to rewrite them in every generators.
This PR provides a decorator: xo.generator, users can define generators as usual in a simple way:
Related issue number
Fixes #xxxx
Check code requirements