Suraj Patil
a69e185074
add doctests for bart like seq2seq models ( #15987 )
...
* boom boom
* enable doctest for few seq2seq models
* add seq2seq models in documentation_tests.txt
* fix docstring blenderbot
* Apply suggestions from code review
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* Apply suggestions from code review
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
* fix seq classif doc sample
* don't check loss for seq classif examples
* +IGNORE_OUTPUT => +IGNORE_RESULT
* fix _SEQ_CLASS_EXPECTED_OUTPUT_SHAPE
* fix some docs
* more fixes
* last fix (hopefully)
* fix big bird gen example
* fix mbart gen example
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
2022-03-09 20:30:38 +01:00
NielsRogge
9251427c38
Add vision models to doc tests ( #15905 )
...
* Add vision models to doc tests
* Apply suggestions from code review
* Add more models
Co-authored-by: Niels Rogge <nielsrogge@Nielss-MacBook-Pro.local>
2022-03-03 19:46:31 +01:00
Patrick von Platen
6cbfa7bf4c
[Doctests] Fix ignore bug and add more doc tests ( #15911 )
...
* finish speech doc tests
* finish
* boom
* Update src/transformers/models/speech_to_text/modeling_speech_to_text.py
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
Co-authored-by: Sylvain Gugger <35901082+sgugger@users.noreply.github.com>
2022-03-03 16:01:56 +01:00
Sylvain Gugger
0118c4f6a8
Re-enable doctests for the quicktour ( #15828 )
...
* Re-enable doctests for the quicktour
* Re-enable doctests for task_summary (#15830 )
* Remove &
2022-02-25 17:46:38 +01:00
Patrick von Platen
9f831bdeaf
[DocTests Speech] Add doc tests for all speech models ( #15031 )
...
* fix_torch_device_generate_test
* remove @
* doc tests
* up
* up
* fix doctests
* adapt files
* finish refactor
* up
* save intermediate
* add more logic
* new change
* improve
* next try
* next try
* next try
* next try
* fix final spaces
* fix final spaces
* improve
* renaming
* correct more bugs
* finish wavlm
* add comment
* run on test runner
* finish all speech models
* adapt
* finish
2022-01-27 14:29:31 +01:00
Lysandre Debut
53b38d6269
Doctests job ( #13088 )
...
* Doctests
* Limit to 4 decimals
* Try with separate PT/TF tests
* Remove test for TF
* Ellips the predictions
* Doctest continue on failure
Co-authored-by: Sylvain Gugger <sylvain.gugger@gmail.com>
2021-08-12 03:42:25 -04:00