electra-base-squad2 / convert_pytorch_to_tensorflow.py
bhadresh-savani's picture
added models
e06d14d
raw
history blame contribute delete
160 Bytes
from transformers import TFAutoModelForQuestionAnswering
model = TFAutoModelForQuestionAnswering.from_pretrained("./", from_pt=True)
model.save_pretrained("./")