deepjavalibrary / djl

An Engine-Agnostic Deep Learning Framework in Java
https://djl.ai
Apache License 2.0
4.16k stars 661 forks source link

[api] Fixes QaServingTranslator output format #3500

Closed frankfliu closed 1 month ago

frankfliu commented 1 month ago

Description

Brief description of what this PR is about

codecov-commenter commented 1 month ago

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

Attention: Patch coverage is 68.00000% with 8 lines in your changes missing coverage. Please review.

Project coverage is 58.91%. Comparing base (b6656ed) to head (ee2ecb3). Report is 9 commits behind head on master.

Files with missing lines Patch % Lines
...l/modality/nlp/translator/QaServingTranslator.java 40.00% 6 Missing :warning:
...anslator/TokenClassificationServingTranslator.java 0.00% 1 Missing :warning:
...rc/main/java/ai/djl/ndarray/BytesSupplierImpl.java 50.00% 1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #3500 +/- ## ============================================= - Coverage 72.52% 58.91% -13.62% + Complexity 7394 5856 -1538 ============================================= Files 672 674 +2 Lines 32909 33042 +133 Branches 3501 3523 +22 ============================================= - Hits 23868 19467 -4401 - Misses 7400 12093 +4693 + Partials 1641 1482 -159 ``` | [Flag](https://app.codecov.io/gh/deepjavalibrary/djl/pull/3500/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=deepjavalibrary) | Coverage Δ | | |---|---|---| | [](https://app.codecov.io/gh/deepjavalibrary/djl/pull/3500/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=deepjavalibrary) | `?` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=deepjavalibrary#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.