Tfmodelforquestionanswering in eval mode

how can i put the tfmodelforquestionanswering in eval mode ? or is it not needed ?
i see the eval function available in bertmodel.

Hi, not sure if I understand your question correctly, but TF model does not have eval mode (unlike Pytorch).
In TF Keras model, for example, we can use model.evaluate() or model.predict() directly where Keras will automatically turn on eval mode for us.

great! thanks for the info.

1 Like