Closed jeongukjae closed 3 years ago
This issue is fixed by this commit (https://github.com/jeongukjae/huggingface-to-tfhub/commit/5e65fedfc4f21ff491ec46d06ad9355f6aa06315) and tested by this script (https://github.com/jeongukjae/huggingface-to-tfhub/blob/main/test_exported_bert_like_models.py)
If
seq_length
argument is passed,token_type_ids
that DistilBert does not require is returned.Reproduce: https://colab.research.google.com/drive/1RSpk-A5s2Ogna6_w4RzRODeYTJshkhqY?usp=sharing