transformers/tests/utils
amyeroberts 8e8384663d
Update serving code to enable saved_model=True (#18153)
* Add serving_output and serving methods to some vision models

* Add serving outputs for DeiT

* Don't convert hidden states - differing shapes

* Make saveable

* Fix up

* Make swin saveable

* Add in tests

* Fix funnel tests (can't convert to tensor)

* Fix numpy call

* Tidy up a bit

* Add in hidden states - resnet

* Remove numpy

* Fix failing tests - tensor shape and skipping tests

* Remove duplicated function

* PR comments - formatting and var names

* PR comments
Add suggestions made by Joao Gante:
* Use tf.shape instead of shape_list
* Use @tooslow decorator on tests
* Simplify some of the logic

* PR comments
Address Yih-Dar Sheih comments - making tensor names consistent and make types float

* Types consistent with docs; disable test on swin (slow)

* CI trigger

* Change input_features to float32

* Add serving_output for segformer

* Fixup

Co-authored-by: Amy Roberts <amyeroberts@users.noreply.github.com>
2022-07-22 18:05:38 +01:00
..
__init__.py
test_activations.py TF: Add sigmoid activation function (#16819) 2022-04-19 16:13:08 +01:00
test_activations_tf.py TF: Add sigmoid activation function (#16819) 2022-04-19 16:13:08 +01:00
test_add_new_model_like.py Reorganize file utils (#16264) 2022-03-23 10:26:33 -04:00
test_cli.py CLI: reenable pt_to_tf test (#18108) 2022-07-12 13:38:05 +01:00
test_convert_slow_tokenizer.py Black preview (#17217) 2022-05-12 16:25:55 -04:00
test_doc_samples.py
test_file_utils.py 🐛 Properly raise RepoNotFoundError when not authenticated (#17651) 2022-06-10 15:41:53 +02:00
test_generic.py Add MLFLOW_FLATTEN_PARAMS support in MLflowCallback (#17148) 2022-05-10 14:29:18 -04:00
test_hf_argparser.py
test_image_utils.py
test_logging.py
test_model_card.py Black preview (#17217) 2022-05-12 16:25:55 -04:00
test_model_output.py Reorganize file utils (#16264) 2022-03-23 10:26:33 -04:00
test_modeling_tf_core.py Update serving code to enable saved_model=True (#18153) 2022-07-22 18:05:38 +01:00
test_offline.py Make sharded checkpoints work in offline mode (#18125) 2022-07-13 12:43:08 -04:00
test_skip_decorators.py
test_utils_check_copies.py Black preview (#17217) 2022-05-12 16:25:55 -04:00
test_versions_utils.py