Login
Remember
Register
All Courses
Ask a Question
Questions
Unanswered
Ask a Question
Blog
Tutorials
Interview Questions
Back
Login
Explore Courses
Blog
Tutorials
Interview Questions
community
Python
Question:module 'tensorflow' has no attribute...
Question:module 'tensorflow' has no attribute 'to_int32'
Question:module 'tensorflow' has no attribute 'to_int32'
0
votes
2
views
asked
Jan 6, 2021
in
Python
by
pr.tarighat
(
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?
python
Please
log in
to add a comment.
Please
log in
to answer this question.
0
Answers
Related questions
0
votes
1
answer
AttributeError: module 'tensorflow.python.keras.backend' has no attribute 'get_graph'
asked
Nov 21, 2020
in
Python
by
sabarish
(
200
points)
data-science
python
tensorflow
keras
keras-layer
0
votes
1
answer
Tensorflow 2.0 - AttributeError: module 'tensorflow' has no attribute 'Session'
asked
May 30, 2020
in
Data Science
by
blackindya
(
18.4k
points)
data-science
python
0
votes
1
answer
module 'tensorflow.contrib.learn' has no attribute 'python'
asked
Jul 20, 2019
in
Data Science
by
sourav
(
17.6k
points)
python
data-science
tensorflow
0
votes
1
answer
AttributeError: 'module' object has no attribute
asked
Oct 15, 2019
in
Python
by
Sammy
(
47.6k
points)
python
0
votes
1
answer
Module 'pandas' has no attribute 'scatter_matrix'
asked
May 28, 2020
in
Data Science
by
supriya
(
36.8k
points)
data-science
python
31k
questions
32.8k
answers
501
comments
693
users
All categories
Python
(3.4k)
Java
(2.2k)
SQL
(1.6k)
Linux
(372)
Big Data Hadoop & Spark
(1.3k)
Data Science
(3.3k)
R Programming
(865)
C Programming
(34)
DevOps and Agile
(2.9k)
Docker
(61)
AI and Deep Learning
(1.4k)
Machine Learning
(1.1k)
AWS
(2.5k)
Azure
(1.6k)
GCP
(226)
RPA
(616)
Selenium
(211)
Software Testing
(58)
Blockchain
(436)
Salesforce
(823)
Others
(580)
BI
(1.9k)
IoT
(24)
Web Technology
(1.5k)
Cyber Security
(358)
Digital Marketing
(331)
Technology Trends
(121)
SEO
(105)
Informatica
(22)
UI UX
(152)
Electric Vehicle
(24)
Investment Banking
(56)
Supply Chain Management
(30)
...