Unverified Commit 7799b612 authored by Yih-Dar's avatar Yih-Dar Committed by GitHub
Browse files

[Fix doc example] TFLayoutLMForTokenClassification: missing import tf (#15268)



* fix import

* remove import torch
Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
parent 11afb709
......@@ -1382,8 +1382,8 @@ class TFLayoutLMForTokenClassification(TFLayoutLMPreTrainedModel, TFTokenClassif
Examples:
```python
>>> import tensorflow as tf
>>> from transformers import LayoutLMTokenizer, TFLayoutLMForTokenClassification
>>> import torch
>>> tokenizer = LayoutLMTokenizer.from_pretrained("microsoft/layoutlm-base-uncased")
>>> model = TFLayoutLMForTokenClassification.from_pretrained("microsoft/layoutlm-base-uncased")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment