transformers/tests/models/wav2vec2
LWprogramming 5de2a6d5e5
Fix wav2vec2 is_batched check to include 2-D numpy arrays (#23223)
* Fix wav2vec2 is_batched check to include 2-D numpy arrays

* address comment

* Add tests

* oops

* oops

* Switch to np array

Co-authored-by: Sanchit Gandhi <93869735+sanchit-gandhi@users.noreply.github.com>

* Switch to np array

* condition merge

* Specify mono channel only in comment

* oops, add other comment too

* make style

* Switch list check from falsiness to empty

---------

Co-authored-by: Sanchit Gandhi <93869735+sanchit-gandhi@users.noreply.github.com>
2023-05-22 12:57:45 -04:00
..
__init__.py Move test model folders (#17034) 2022-05-03 14:42:02 +02:00
test_feature_extraction_wav2vec2.py Fix wav2vec2 is_batched check to include 2-D numpy arrays (#23223) 2023-05-22 12:57:45 -04:00
test_modeling_flax_wav2vec2.py Fix env. variable type issue in testing (#21609) 2023-02-13 20:53:26 +01:00
test_modeling_tf_wav2vec2.py Add TensorFlow Wav2Vec2 for sequence classification (#22073) 2023-04-26 13:35:30 +01:00
test_modeling_wav2vec2.py Time to Say Goodbye, torch 1.7 and 1.8 (#22291) 2023-03-21 19:22:01 +01:00
test_processor_wav2vec2.py [processor] Add 'model input names' property (#20117) 2022-11-10 19:29:20 +00:00
test_tokenization_wav2vec2.py Fix wav2vec2 is_batched check to include 2-D numpy arrays (#23223) 2023-05-22 12:57:45 -04:00