run_tf_glue MRPC evaluation only for MRPC
This commit is contained in:
@@ -71,6 +71,7 @@ history = model.fit(train_dataset, epochs=EPOCHS, steps_per_epoch=train_steps,
|
|||||||
os.makedirs('./save/', exist_ok=True)
|
os.makedirs('./save/', exist_ok=True)
|
||||||
model.save_pretrained('./save/')
|
model.save_pretrained('./save/')
|
||||||
|
|
||||||
|
if TASK == "mrpc":
|
||||||
# Load the TensorFlow model in PyTorch for inspection
|
# Load the TensorFlow model in PyTorch for inspection
|
||||||
pytorch_model = BertForSequenceClassification.from_pretrained('./save/', from_tf=True)
|
pytorch_model = BertForSequenceClassification.from_pretrained('./save/', from_tf=True)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user