Skip to content

Upload requirements.txt #1

Description

@Christopher-Thornton

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions