roberta-base-emotion / convert_pytorch_to_tensorflow.py
bhadresh-savani's picture
added flax and tensorflow model
90a5f86
raw
history blame
170 Bytes
from transformers import TFAutoModelForSequenceClassification
model = TFAutoModelForSequenceClassification.from_pretrained("./", from_pt=True)
model.save_pretrained("./")