I am unable to reproduce the code in Evaluation.ipynb on the below step when loading the BERT models:
import tensorflow as tf;
bert_lstm = tf.keras.models.load_model('./Checkpoints/BERT_LSTM.h5', compile = False,
custom_objects={'BertModelLayer': BertModelLayer,
'Functional':tf.keras.models.Model})
Giving this error:
TypeError: Layer input_spec must be an instance of InputSpec. Got: InputSpec(shape=(None, 128, 768), ndim=3)
Could you upload the pinned version of all the dependencies so that I can reproduce this code as this may be a version issue.
I am unable to reproduce the code in
Evaluation.ipynbon the below step when loading the BERT models:Giving this error:
Could you upload the pinned version of all the dependencies so that I can reproduce this code as this may be a version issue.