Closed wjx-git closed 2 years ago
使用 simbert.py 训练得到模型,使用 gen_synonyms_test.py 测试时报错: tensorflow.python.framework.errors_impl.InvalidArgumentError: Input to reshape is a tensor with 13584 values, but the requested shape has 13685
解决方法: 训练模型时将 keep_tokens 注释即可。 `bert = build_transformer_model( config_path, checkpoint_path, with_pool='linear', application='unilm',
return_keras_model=False, )`
使用 simbert.py 训练得到模型,使用 gen_synonyms_test.py 测试时报错: tensorflow.python.framework.errors_impl.InvalidArgumentError: Input to reshape is a tensor with 13584 values, but the requested shape has 13685