Remove DT_DOUBLE from the T5 graph
Author: szutenberg
Pull request: yes
Labels: name: TensorFlow

# What does this PR do?

This PR removes DT_DOUBLE aka tf.float64 from T5 TF graph. It comes from https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/ops/math_ops.py#L1510 , two operands are int32 so TF casts them to float64 (`_TRUEDIV_TABLE[dtypes.int32] = dtypes.float64`).

Some accelerators do not support doubles so it's important to avoid them wherever possible.

## Before submitting
- [ ] This PR fixes a typo or improves the docs (you can dismiss the other checks if that's the case).
- [x] Did you read the [contributor guideline](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md#start-contributing-pull-requests),
      Pull Request section?
- [ ] Was this discussed/approved via a Github issue or the [forum](https://discuss.huggingface.co/)? Please add a link
      to it if that's the case.
- [ ] Did you make sure to update the documentation with your changes? Here are the
      [documentation guidelines](https://github.com/huggingface/transformers/tree/main/docs), and
      [here are tips on formatting docstrings](https://github.com/huggingface/transformers/tree/main/docs#writing-source-documentation).
- [ ] Did you write any new necessary tests?

## Who can review?

@patrickvonplaten, @LysandreJik

Comments:
_The documentation is not available anymore as the PR was closed or merged._

Hi @szutenberg 👋  Have you confirmed that the slow tests pass after this change? (you can run the slow tests with `NVIDIA_TF32_OVERRIDE=0 RUN_SLOW=1 py.test -vv tests/models/t5/test_modeling_tf_t5.py`)

It looks good to me if it passes the tests :)

@gante - my change passes tests
```
(venv28) msz@G4:~/transformers$ NVIDIA_TF32_OVERRIDE=0 RUN_SLOW=1 pytest -vv tests/models/t5/test_modeling_tf_t5.py
============================================================================================================================= test session starts =============================================================================================================================
platform linux -- Python 3.8.5, pytest-7.1.2, pluggy-1.0.0 -- /home/msz/venv28/bin/python
cachedir: .pytest_cache
rootdir: /home/msz/transformers, configfile: setup.cfg
plugins: typeguard-2.13.3
collected 86 items                                                                                                                                                                                                                                                            

tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_attention_outputs <- tests/test_modeling_tf_common.py PASSED                                                                                                                                                [  1%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_compile_tf_model <- tests/test_modeling_tf_common.py PASSED                                                                                                                                                 [  2%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_config PASSED                                                                                                                                                                                               [  3%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_dataset_conversion <- tests/test_modeling_tf_common.py PASSED                                                                                                                                               [  4%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_determinism <- tests/test_modeling_tf_common.py PASSED                                                                                                                                                      [  5%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_forward_signature <- tests/test_modeling_tf_common.py PASSED                                                                                                                                                [  6%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_generate_with_headmasking PASSED                                                                                                                                                                            [  8%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_headmasking <- tests/test_modeling_tf_common.py PASSED                                                                                                                                                      [  9%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_hidden_states_output <- tests/test_modeling_tf_common.py PASSED                                                                                                                                             [ 10%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_initialization <- tests/test_modeling_tf_common.py PASSED                                                                                                                                                   [ 11%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_inputs_embeds <- tests/test_modeling_tf_common.py PASSED                                                                                                                                                    [ 12%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_int64_inputs <- tests/test_modeling_tf_common.py PASSED                                                                                                                                                     [ 13%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_keras_fit <- tests/test_modeling_tf_common.py PASSED                                                                                                                                                        [ 15%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_keras_save_load SKIPPED (The inputs of the Main Layer are different.)                                                                                                                                       [ 16%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_keyword_and_dict_args <- tests/test_modeling_tf_common.py PASSED                                                                                                                                            [ 17%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_lm_head_model_beam_search_generate_dict_outputs <- tests/test_modeling_tf_common.py PASSED                                                                                                                  [ 18%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_lm_head_model_no_beam_search_generate_dict_outputs <- tests/test_modeling_tf_common.py PASSED                                                                                                               [ 19%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_lm_head_model_random_beam_search_generate <- tests/test_modeling_tf_common.py PASSED                                                                                                                        [ 20%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_lm_head_model_random_no_beam_search_generate <- tests/test_modeling_tf_common.py PASSED                                                                                                                     [ 22%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_load_with_mismatched_shapes <- tests/test_modeling_tf_common.py PASSED                                                                                                                                      [ 23%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_loss_computation <- tests/test_modeling_tf_common.py PASSED                                                                                                                                                 [ 24%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_model_common_attributes PASSED                                                                                                                                                                              [ 25%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_model_from_pretrained PASSED                                                                                                                                                                                [ 26%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_model_main_input_name <- tests/test_modeling_tf_common.py PASSED                                                                                                                                            [ 27%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_model_outputs_equivalence <- tests/test_modeling_tf_common.py PASSED                                                                                                                                        [ 29%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_numpy_arrays_inputs <- tests/test_modeling_tf_common.py PASSED                                                                                                                                              [ 30%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_onnx_compliancy <- tests/test_modeling_tf_common.py PASSED                                                                                                                                                  [ 31%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_onnx_runtime_optimize <- tests/test_modeling_tf_common.py SKIPPED (test requires tf2onnx)                                                                                                                   [ 32%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_pt_tf_model_equivalence <- tests/test_modeling_tf_common.py SKIPPED (test is PT+TF test)                                                                                                                    [ 33%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_resize_embeddings PASSED                                                                                                                                                                                    [ 34%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_resize_token_embeddings <- tests/test_modeling_tf_common.py PASSED                                                                                                                                          [ 36%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_save_load <- tests/test_modeling_tf_common.py PASSED                                                                                                                                                        [ 37%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_save_load_config <- tests/test_modeling_tf_common.py PASSED                                                                                                                                                 [ 38%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_saved_model_creation PASSED                                                                                                                                                                                 [ 39%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_t5_decoder_model_past PASSED                                                                                                                                                                                [ 40%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_t5_decoder_model_past_large_inputs PASSED                                                                                                                                                                   [ 41%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_t5_decoder_model_past_with_attn_mask PASSED                                                                                                                                                                 [ 43%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_t5_model PASSED                                                                                                                                                                                             [ 44%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_t5_model_v1_1 PASSED                                                                                                                                                                                        [ 45%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_t5_model_xla_generate_fast PASSED                                                                                                                                                                           [ 46%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_with_lm_head PASSED                                                                                                                                                                                         [ 47%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_attention_outputs <- tests/test_modeling_tf_common.py PASSED                                                                                                                                     [ 48%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_compile_tf_model <- tests/test_modeling_tf_common.py PASSED                                                                                                                                      [ 50%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_config PASSED                                                                                                                                                                                    [ 51%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_dataset_conversion <- tests/test_modeling_tf_common.py PASSED                                                                                                                                    [ 52%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_determinism <- tests/test_modeling_tf_common.py PASSED                                                                                                                                           [ 53%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_forward_signature <- tests/test_modeling_tf_common.py PASSED                                                                                                                                     [ 54%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_generate_with_headmasking <- tests/test_modeling_tf_common.py PASSED                                                                                                                             [ 55%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_headmasking <- tests/test_modeling_tf_common.py PASSED                                                                                                                                           [ 56%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_hidden_states_output <- tests/test_modeling_tf_common.py PASSED                                                                                                                                  [ 58%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_initialization <- tests/test_modeling_tf_common.py PASSED                                                                                                                                        [ 59%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_inputs_embeds <- tests/test_modeling_tf_common.py PASSED                                                                                                                                         [ 60%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_int64_inputs <- tests/test_modeling_tf_common.py PASSED                                                                                                                                          [ 61%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_keras_fit <- tests/test_modeling_tf_common.py PASSED                                                                                                                                             [ 62%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_keras_save_load <- tests/test_modeling_tf_common.py PASSED                                                                                                                                       [ 63%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_keyword_and_dict_args <- tests/test_modeling_tf_common.py PASSED                                                                                                                                 [ 65%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_lm_head_model_beam_search_generate_dict_outputs <- tests/test_modeling_tf_common.py PASSED                                                                                                       [ 66%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_lm_head_model_no_beam_search_generate_dict_outputs <- tests/test_modeling_tf_common.py PASSED                                                                                                    [ 67%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_lm_head_model_random_beam_search_generate <- tests/test_modeling_tf_common.py PASSED                                                                                                             [ 68%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_lm_head_model_random_no_beam_search_generate <- tests/test_modeling_tf_common.py PASSED                                                                                                          [ 69%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_load_with_mismatched_shapes <- tests/test_modeling_tf_common.py PASSED                                                                                                                           [ 70%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_loss_computation <- tests/test_modeling_tf_common.py PASSED                                                                                                                                      [ 72%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_model PASSED                                                                                                                                                                                     [ 73%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_model_common_attributes <- tests/test_modeling_tf_common.py PASSED                                                                                                                               [ 74%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_model_main_input_name <- tests/test_modeling_tf_common.py PASSED                                                                                                                                 [ 75%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_model_outputs_equivalence <- tests/test_modeling_tf_common.py PASSED                                                                                                                             [ 76%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_numpy_arrays_inputs <- tests/test_modeling_tf_common.py PASSED                                                                                                                                   [ 77%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_onnx_compliancy <- tests/test_modeling_tf_common.py PASSED                                                                                                                                       [ 79%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_onnx_runtime_optimize <- tests/test_modeling_tf_common.py SKIPPED (test requires tf2onnx)                                                                                                        [ 80%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_pt_tf_model_equivalence <- tests/test_modeling_tf_common.py SKIPPED (test is PT+TF test)                                                                                                         [ 81%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_resize_token_embeddings <- tests/test_modeling_tf_common.py PASSED                                                                                                                               [ 82%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_save_load <- tests/test_modeling_tf_common.py PASSED                                                                                                                                             [ 83%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_save_load_config <- tests/test_modeling_tf_common.py PASSED                                                                                                                                      [ 84%]
tests/models/t5/test_modeling_tf_t5.py::TFT5EncoderOnlyModelTest::test_train_pipeline_custom_model PASSED                                                                                                                                                               [ 86%]
tests/models/t5/test_modeling_tf_t5.py::TFT5GenerationIntegrationTests::test_beam_search_generate PASSED                                                                                                                                                                [ 87%]
tests/models/t5/test_modeling_tf_t5.py::TFT5GenerationIntegrationTests::test_greedy_generate PASSED                                                                                                                                                                     [ 88%]
tests/models/t5/test_modeling_tf_t5.py::TFT5GenerationIntegrationTests::test_greedy_xla_generate_simple PASSED                                                                                                                                                          [ 89%]
tests/models/t5/test_modeling_tf_t5.py::TFT5GenerationIntegrationTests::test_sample_generate PASSED                                                                                                                                                                     [ 90%]
tests/models/t5/test_modeling_tf_t5.py::TFT5GenerationIntegrationTests::test_sample_xla_generate_simple PASSED                                                                                                                                                          [ 91%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelIntegrationTests::test_small_byt5_integration_test PASSED                                                                                                                                                              [ 93%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelIntegrationTests::test_small_integration_test PASSED                                                                                                                                                                   [ 94%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelIntegrationTests::test_small_v1_1_integration_test PASSED                                                                                                                                                              [ 95%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelIntegrationTests::test_summarization PASSED                                                                                                                                                                            [ 96%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelIntegrationTests::test_translation_en_to_de PASSED                                                                                                                                                                     [ 97%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelIntegrationTests::test_translation_en_to_fr PASSED                                                                                                                                                                     [ 98%]
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelIntegrationTests::test_translation_en_to_ro PASSED                                                                                                                                                                     [100%]

============================================================================================================================== warnings summary ===============================================================================================================================
../venv28/lib/python3.8/site-packages/flatbuffers/compat.py:19
  /home/msz/venv28/lib/python3.8/site-packages/flatbuffers/compat.py:19: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
    import imp

../venv28/lib/python3.8/site-packages/keras_preprocessing/image/utils.py:23
  /home/msz/venv28/lib/python3.8/site-packages/keras_preprocessing/image/utils.py:23: DeprecationWarning: NEAREST is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.NEAREST or Dither.NONE instead.
    'nearest': pil_image.NEAREST,

../venv28/lib/python3.8/site-packages/keras_preprocessing/image/utils.py:24
  /home/msz/venv28/lib/python3.8/site-packages/keras_preprocessing/image/utils.py:24: DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead.
    'bilinear': pil_image.BILINEAR,

../venv28/lib/python3.8/site-packages/keras_preprocessing/image/utils.py:25
  /home/msz/venv28/lib/python3.8/site-packages/keras_preprocessing/image/utils.py:25: DeprecationWarning: BICUBIC is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BICUBIC instead.
    'bicubic': pil_image.BICUBIC,

../venv28/lib/python3.8/site-packages/keras_preprocessing/image/utils.py:28
  /home/msz/venv28/lib/python3.8/site-packages/keras_preprocessing/image/utils.py:28: DeprecationWarning: HAMMING is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.HAMMING instead.
    if hasattr(pil_image, 'HAMMING'):

../venv28/lib/python3.8/site-packages/keras_preprocessing/image/utils.py:29
  /home/msz/venv28/lib/python3.8/site-packages/keras_preprocessing/image/utils.py:29: DeprecationWarning: HAMMING is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.HAMMING instead.
    _PIL_INTERPOLATION_METHODS['hamming'] = pil_image.HAMMING

../venv28/lib/python3.8/site-packages/keras_preprocessing/image/utils.py:30
  /home/msz/venv28/lib/python3.8/site-packages/keras_preprocessing/image/utils.py:30: DeprecationWarning: BOX is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BOX instead.
    if hasattr(pil_image, 'BOX'):

../venv28/lib/python3.8/site-packages/keras_preprocessing/image/utils.py:31
  /home/msz/venv28/lib/python3.8/site-packages/keras_preprocessing/image/utils.py:31: DeprecationWarning: BOX is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BOX instead.
    _PIL_INTERPOLATION_METHODS['box'] = pil_image.BOX

../venv28/lib/python3.8/site-packages/keras_preprocessing/image/utils.py:33
  /home/msz/venv28/lib/python3.8/site-packages/keras_preprocessing/image/utils.py:33: DeprecationWarning: LANCZOS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
    if hasattr(pil_image, 'LANCZOS'):

../venv28/lib/python3.8/site-packages/keras_preprocessing/image/utils.py:34
  /home/msz/venv28/lib/python3.8/site-packages/keras_preprocessing/image/utils.py:34: DeprecationWarning: LANCZOS is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.LANCZOS instead.
    _PIL_INTERPOLATION_METHODS['lanczos'] = pil_image.LANCZOS

tests/models/t5/test_modeling_tf_t5.py: 1116 warnings
  /home/msz/venv28/lib/python3.8/site-packages/datasets/formatting/formatting.py:197: DeprecationWarning: `np.object` is a deprecated alias for the builtin `object`. To silence this warning, use `object` by itself. Doing this will not modify any behavior and is safe. 
  Deprecated in NumPy 1.20; for more details and guidance: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations
    (isinstance(x, np.ndarray) and (x.dtype == np.object or x.shape != array[0].shape))

tests/models/t5/test_modeling_tf_t5.py::TFT5ModelTest::test_resize_embeddings
tests/models/t5/test_modeling_tf_t5.py::TFT5GenerationIntegrationTests::test_beam_search_generate
tests/models/t5/test_modeling_tf_t5.py::TFT5GenerationIntegrationTests::test_greedy_generate
tests/models/t5/test_modeling_tf_t5.py::TFT5GenerationIntegrationTests::test_greedy_xla_generate_simple
tests/models/t5/test_modeling_tf_t5.py::TFT5GenerationIntegrationTests::test_sample_generate
tests/models/t5/test_modeling_tf_t5.py::TFT5GenerationIntegrationTests::test_sample_xla_generate_simple
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelIntegrationTests::test_small_integration_test
  /home/msz/transformers/src/transformers/models/t5/tokenization_t5.py:164: FutureWarning: This tokenizer was incorrectly instantiated with a model max length of 512 which will be corrected in Transformers v5.
  For now, this behavior is kept to avoid breaking backwards compatibility when padding/encoding with `truncation is True`.
  - Be aware that you SHOULD NOT rely on t5-small automatically truncating your input to 512 when padding/encoding.
  - If you want to encode/pad to sequences longer than 512 you can either instantiate this tokenizer with `model_max_length` or pass `max_length` when encoding/padding.
  - To avoid this warning, please instantiate this tokenizer with `model_max_length` set to your preferred value.
    warnings.warn(

tests/models/t5/test_modeling_tf_t5.py::TFT5ModelIntegrationTests::test_summarization
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelIntegrationTests::test_translation_en_to_de
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelIntegrationTests::test_translation_en_to_fr
tests/models/t5/test_modeling_tf_t5.py::TFT5ModelIntegrationTests::test_translation_en_to_ro
  /home/msz/transformers/src/transformers/models/t5/tokenization_t5.py:164: FutureWarning: This tokenizer was incorrectly instantiated with a model max length of 512 which will be corrected in Transformers v5.
  For now, this behavior is kept to avoid breaking backwards compatibility when padding/encoding with `truncation is True`.
  - Be aware that you SHOULD NOT rely on t5-base automatically truncating your input to 512 when padding/encoding.
  - If you want to encode/pad to sequences longer than 512 you can either instantiate this tokenizer with `model_max_length` or pass `max_length` when encoding/padding.
  - To avoid this warning, please instantiate this tokenizer with `model_max_length` set to your preferred value.
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
========================================================================================================== 81 passed, 5 skipped, 1137 warnings in 680.12s (0:11:20) ===========================================================================================================
(venv28) msz@G4:~/transformers$ git log -n 2
commit 004812a999675881da07e5ffb253b80c95883941 (HEAD -> remove_float64, origin/remove_float64)
Author: Michal Szutenberg <michal@szutenberg.pl>
Date:   Mon Jun 27 08:52:46 2022 +0200

    Remove DT_DOUBLE from the T5 graph

commit cc5c061e346365252458126abb699b87cda5dcc0 (origin/master, origin/HEAD, master)
Author: Joao Gante <joaofranciscocardosogante@gmail.com>
Date:   Sat Jun 25 16:17:11 2022 +0100

    CLI: handle multimodal inputs (#17839)
(venv28) msz@G4:~/transformers$ pip list | grep transformers
transformers                    4.21.0.dev0
WARNING: You are using pip version 21.1; however, version 22.1.2 is available.
You should consider upgrading via the '/home/msz/venv28/bin/python -m pip install --upgrade pip' command.
```

@szutenberg awesome! Thank you for double-checking the tests -- merging :)