distilbert-finetuned / convert_pytorch_to_tensorflow.py
abspython's picture
Updated
42d7250
raw
history blame
170 Bytes
from transformers import TFAutoModelForSequenceClassification
model = TFAutoModelForSequenceClassification.from_pretrained("./", from_pt=True)
model.save_pretrained("./")