distilbert-base-uncased-emotion / convert_pytorch_to_tensorflow.py
philschmid's picture
philschmid HF staff
Upload convert_pytorch_to_tensorflow.py
6b12af7
raw
history blame
170 Bytes
from transformers import TFAutoModelForSequenceClassification
model = TFAutoModelForSequenceClassification.from_pretrained("./", from_pt=True)
model.save_pretrained("./")