electra-base-emotion / convert_pytorch_to_tensorflow.py
bhadresh-savani's picture
added tf and flax model support
d2b8df9
raw
history blame
166 Bytes
from transformers import TFElectraForSequenceClassification
model = TFElectraForSequenceClassification.from_pretrained("./", from_pt=True)
model.save_pretrained("./")