distilbert-base-uncased-sentiment-sst2 / convert_pytorch_to_tensorflow.py
bhadresh-savani's picture
added pytorch and tensorflow model
ba72176
raw
history blame
170 Bytes
from transformers import TFAutoModelForSequenceClassification
model = TFAutoModelForSequenceClassification.from_pretrained("./", from_pt=True)
model.save_pretrained("./")