guillaumegenthial / tf_ner

Simple and Efficient Tensorflow implementations of NER models with tf.estimator and tf.data
Apache License 2.0
923 stars 275 forks source link

InvalidArgumentError #50

Open AnujChatterjee opened 5 years ago

AnujChatterjee commented 5 years ago

trying to use model on custom data

InvalidArgumentError (see above for traceback): Restoring from checkpoint failed. This is most likely due to a mismatch between the current graph and the graph from the checkpoint. Please ensure that you have not altered the graph expected based on the checkpoint. Original error:

Assign requires shapes of both tensors to match. lhs shape= [106,300] rhs shape= [23,300] [[node save/Assign (defined at /home/anujc/.conda/envs/py37/lib/python3.7/site-packages/tensorflow_estimator/python/estimator/estimator.py:1403) ]]

can you please guide

ghost commented 5 years ago

hi, you can try to delete the results directory which saved the model