Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Python by (120 points)
I run a code in python,

def Mean_IOU_Evaluator(y_true, y_pred):

      prec = []

        for t in np.arange(0.5, 1, 0.05):

                y_pred_ = tf.to_int32(y_pred>t)

            y_pred=tf.dtypes

This error is appeard:

module 'tensorflow' has no attribute 'to_int32'

How can I solve it?
Please log in to answer this question.

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...