Skip to content

Error when multiplying prediction logits by output mask tensor #6

@dr-smgad

Description

@dr-smgad

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions