google-research / electra

ELECTRA: Pre-training Text Encoders as Discriminators Rather Than Generators
Apache License 2.0
2.33k stars 352 forks source link

Failed to convert object of type <class 'dict'> to Tensor #75

Closed lizaigaoge550 closed 4 years ago

lizaigaoge550 commented 4 years ago

During i run code, i found some error during training model as per below Failed to convert object of type <class 'dict'> to Tensor the error is here in optimization.py and i used tf.1.12 屏幕快照 2020-06-16 下午5 45 20 how can i fix it?

stefan-it commented 4 years ago

Hi @lizaigaoge550, could you try to use TensorFlow 1.15 -> I did use that version for training my ELECTRA models and it always worked :)