python-textualheatmap icon indicating copy to clipboard operation
python-textualheatmap copied to clipboard

Error when multiplying prediction logits by output mask tensor

Open dr-smgad opened this issue 3 years ago • 1 comments

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

Any ideas?

dr-smgad avatar Apr 30 '21 18:04 dr-smgad

Have the same problem, anyone can help us?

wenlinyao avatar Jul 23 '21 01:07 wenlinyao