1. 30 Jan, 2023 1 commit
  2. 25 Jan, 2023 1 commit
  3. 07 Oct, 2022 1 commit
    • Sylvain Gugger's avatar
      Rework pipeline tests (#19366) · 9ac586b3
      Sylvain Gugger authored
      * Rework pipeline tests
      
      * Try to fix Flax tests
      
      * Try to put it before
      
      * Use a new decorator instead
      
      * Remove ignore marker since it doesn't work
      
      * Filter pipeline tests
      
      * Woopsie
      
      * Use the fitlered list
      
      * Clean up and fake modif
      
      * Remove init
      
      * Revert fake modif
      9ac586b3
  4. 28 Jun, 2022 1 commit
    • Nicolas Patry's avatar
      Fixing a regression with `return_all_scores` introduced in #17606 (#17906) · 776855c7
      Nicolas Patry authored
      Fixing a regression with `return_all_scores` introduced in #17606
      
      - The legacy test actually tested `return_all_scores=False` (the actual
        default) instead of `return_all_scores=True` (the actual weird case).
      
      This commit adds the correct legacy test and fixes it.
      
      Tmp legacy tests.
      
      Actually fix the regression (also contains lists)
      
      Less diffed code.
      776855c7
  5. 09 Jun, 2022 1 commit
    • Nicolas Patry's avatar
      Adding `top_k` argument to `text-classification` pipeline. (#17606) · 2351729f
      Nicolas Patry authored
      * Adding `top_k` and `sort` arguments to `text-classification` pipeline.
      
      - Deprecate `return_all_scores` as `top_k` is more uniform with other
        pipelines, and a superset of what `return_all_scores` can do.
        BC is maintained though.
        `return_all_scores=True` -> `top_k=None`
        `return_all_scores=False` -> `top_k=1`
      
      - Using `top_k` will imply sorting the results, but using no argument
        will keep the results unsorted for backward compatibility.
      
      * Remove `sort`.
      
      * Fixing the test.
      
      * Remove bad doc.
      2351729f
  6. 19 May, 2022 1 commit
  7. 18 May, 2022 1 commit
  8. 23 Feb, 2022 1 commit
  9. 22 Nov, 2021 1 commit
  10. 29 Oct, 2021 1 commit
  11. 26 Aug, 2021 2 commits
  12. 29 Jul, 2021 1 commit
  13. 22 Jul, 2021 1 commit
    • Nicolas Patry's avatar
      Improving pipeline tests (#12784) · 795c1444
      Nicolas Patry authored
      
      
      * Proposal
      
      * Testing pipelines slightly better.
      
      - Overall same design
      - Metaclass to get proper different tests instead of subTest (not well
      supported by Pytest)
      - Added ANY meta object to make output checking more readable.
      - Skipping architectures either without tiny_config or without
      architecture.
      
      * Small fix.
      
      * Fixing the tests in case of None value.
      
      * Oups.
      
      * Rebased with more architectures.
      
      * Fixing reformer tests (no override anymore).
      
      * Adding more options for model tester config.
      Co-authored-by: default avatarLysandre <lysandre.debut@reseau.eseo.fr>
      795c1444
  14. 15 Apr, 2021 1 commit
  15. 07 Dec, 2020 1 commit
  16. 23 Oct, 2020 1 commit