AttributeError: 'str' object has no attribute 'squeeze'
Hello guys, I am new to Hugging Face. I was running it on my Ubuntu 18, in Jupyter notebook.
I was running the example case (tutorial) for the https://huggingface.co/neuraly/bert-base-italian-cased-sentiment model. But I get this error:
```
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/tmp/ipykernel_29169/2345971003.py in <module>
      1 # Remove the fake batch dimension
----> 2 logits = logits.squeeze(0)
      3 
      4 # The model was trained with a Log Likelyhood + Softmax combined loss, hence to extract probabilities we need a softmax on top of the logits tensor
      5 proba = nn.functional.softmax(logits, dim=0)

AttributeError: 'str' object has no attribute 'squeeze'
```
When I inspect the value of the logits variable, its content is the string "logits".


## Environment info
- `transformers` version: 4.11.3
- Platform: Linux-5.4.0-89-generic-x86_64-with-glibc2.27
- Python version: 3.9.7
- PyTorch version (GPU?): 1.10.0 (False)
- Tensorflow version (GPU?): not installed (NA)
- Flax version (CPU?/GPU?/TPU?): not installed (NA)
- Jax version: not installed
- JaxLib version: not installed
- Using GPU in script?: Nope
- Using distributed or parallel set-up in script?: Nope


### Who can help


Models:
- neuraly/bert-base-italian-cased-sentiment: @gianpy15

Library:
- Tokenizers: @LysandreJik

Documentation: @sgugger
 -->

## Information
The problem arises when using:
* [x] the official example scripts: (give details below)
* [ ] my own modified scripts: (give details below)

The tasks I am working on is:
* [ ] an official GLUE/SQUaD task: (give the name)
* [ ] my own task or dataset: (give details below)

## To reproduce

Steps to reproduce the behaviour:

1. Run the example in the tutorial.


That code can't work since Transformers v4
```
# Call the model and get the logits
logits, = model(tensor)
```
you need to do
```
# Call the model and get the logits
logits = model(tensor).logits
```
<|||||>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/master/CONTRIBUTING.md) are likely to be ignored.