Add warning when using older version of torch for ViltFeatureExtractor
Closes https://github.com/huggingface/transformers/issues/16637
_The documentation is not available anymore as the PR was closed or merged._<|||||>I'd update to use `logging.warning` instead of `warnings.warn`, but other than that it looks like a sound approach.<|||||>Ok I made the change<|||||>Sorry should have been clearer, in this instance you should move the `logger` instantiation above, and use `logger.warning`. See an example here:

https://github.com/huggingface/transformers/blob/4975002df50c472cbb6f8ac3580e475f570606ab/src/transformers/pipelines/base.py#L234-L237<|||||>@LysandreJik Ok done<|||||>This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

Please note that issues that do not follow the [contributing guidelines](https://github.com/huggingface/transformers/blob/main/CONTRIBUTING.md) are likely to be ignored.<|||||>Ah, before merging we'll need to update the code quality.

Could you just run the code quality tool to ensure that the code quality passes? You can install them with the following, from the root of your clone:
```
pip install -e ".[quality]"
```
And then run them with:
```
make fixup
```<|||||>@LysandreJik just updated it<|||||>@xhlulu it seems that the CI still isn't green, you can click on the check "check_code_quality" above to see why it's failing.<|||||>```
Traceback (most recent call last):
  File "/home/circleci/.local/bin/doc-builder", line 8, in <module>
    sys.exit(main())
  File "/home/circleci/.local/lib/python3.6/site-packages/doc_builder/commands/doc_builder_cli.py", line 43, in main
    args.func(args)
  File "/home/circleci/.local/lib/python3.6/site-packages/doc_builder/commands/style.py", line 28, in style_command
    raise ValueError(f"{len(changed)} files should be restyled!")
ValueError: 30 files should be restyled!

Exited with code exit status 1

CircleCI received exit code 1
```<|||||>@NielsRogge i just updated to match upstream, should work now<|||||>Hmm @xhlulu I checked and there's no `meshgrid` being used in `ViltFeatureExtractor`.

It's only the model that requires torch 1.10 or higher, right? Not the feature extractor?<|||||>It's in `ViltEmbeddings`:

https://github.com/huggingface/transformers/blob/39f8eafc1b6f00769240f714e2df5b2c5f111c32/src/transformers/models/vilt/modeling_vilt.py#L115-L151<|||||>I moved the error message, but when trying to run the make fixup, it gives this:
```
(venv) xhlu@XHL-Desktop:~/dev/transformers$ make fixup
make: execvp: /bin/sh: Argument list too long
make: *** [Makefile:10: modified_only_fixup] Error 127
```<|||||>Unrelated error, merging!