How to use GPU to do inference ?
## ❓ Questions & Help

<!-- A clear and concise description of the question. -->
When I use pretrained model to infer, how can I use GPU?
```
    tokenizer = XLNetTokenizer.from_pretrained('your-folder-name')
    model = XLNetModel.from_pretrained('your-folder-name')
    inputs = torch.tensor([tokenizer.encode("你好GitHub!")])
    states = model(inputs)[0][0]
```
Like the code above, If I wanna use GPU when `states = model(inputs)[0][0]`, What should I do ?
Ok, I find the way. Just do it like the naive Pytorch code. 