distilbert-base-uncased-emotion-2 / convert_pytorch_to_tensorflow.py
haqishen's picture
first commit
19cd3b5
raw
history blame contribute delete
170 Bytes
from transformers import TFAutoModelForSequenceClassification
model = TFAutoModelForSequenceClassification.from_pretrained("./", from_pt=True)
model.save_pretrained("./")