Bert base chinese model gives error :- EagerTensor object has no attribute 'size'
## Environment info
<!-- You can run the command `transformers-cli env` and copy-and-paste its output below.
     Don't forget to fill out the missing fields in that output! -->
     
- `transformers` version: 3.2.0
- Platform:
- Python version: 3.7
- PyTorch version (GPU?):
- Tensorflow version (GPU?): 3.2.1
- Using GPU in script?:
- Using distributed or parallel set-up in script?: No


## Information
I am just trying to get BERT embedding using the Chinese BERT base as explained in GitHub but getting an error.

Model I am using (Bert, XLNet ...): BERT (Chinese)


## To reproduce

```
from transformers import AutoTokenizer, AutoModel

tokenizer = AutoTokenizer.from_pretrained("bert-base-chinese")
model = AutoModel.from_pretrained("bert-base-chinese")

inputs = tokenizer("和 管理 ， 发挥 公路", return_tensors="tf")
outputs = model(**inputs)

```
Error 
```
AttributeError                            Traceback (most recent call last)
<ipython-input-30-481c0ebb1173> in <module>
      1 inputs = tokenizer("和 管理 ， 发挥 公路", return_tensors="tf")
      2 
----> 3 outputs = model(**inputs)

~/anaconda3/lib/python3.7/site-packages/torch/nn/modules/module.py in _call_impl(self, *input, **kwargs)
    720             result = self._slow_forward(*input, **kwargs)
    721         else:
--> 722             result = self.forward(*input, **kwargs)
    723         for hook in itertools.chain(
    724                 _global_forward_hooks.values(),

~/anaconda3/lib/python3.7/site-packages/transformers/modeling_bert.py in forward(self, input_ids, attention_mask, token_type_ids, position_ids, head_mask, inputs_embeds, encoder_hidden_states, encoder_attention_mask, output_attentions, output_hidden_states, return_dict)
    789             raise ValueError("You cannot specify both input_ids and inputs_embeds at the same time")
    790         elif input_ids is not None:
--> 791             input_shape = input_ids.size()
    792         elif inputs_embeds is not None:
    793             input_shape = inputs_embeds.size()[:-1]

AttributeError: 'tensorflow.python.framework.ops.EagerTensor' object has no attribute 'size'
```
You are mixing the Pytorch and tf API. You should have "return_tensors="pt"" if you use PyTorch or use TFAutoModel for TensorFlow.<|||||>@esp32wrangler is correct!