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