Open dr-smgad opened 3 years ago
I'm using TF 2.4 and this line predict_mask_correct_token = tf.reduce_sum(predict * output_mask_tensor) gives error TypeError: Cannot convert 'logits' to EagerTensor of dtype float
predict_mask_correct_token = tf.reduce_sum(predict * output_mask_tensor)
TypeError: Cannot convert 'logits' to EagerTensor of dtype float
Any ideas?
Have the same problem, anyone can help us?
I'm using TF 2.4 and this line
predict_mask_correct_token = tf.reduce_sum(predict * output_mask_tensor)
gives errorTypeError: Cannot convert 'logits' to EagerTensor of dtype float
Any ideas?