Talha Hanif Butt
Talha Hanif Butt

Apr 25, 2022

·
1 min read

Solution 11

TensorFlow, “‘module’ object has no attribute ‘placeholder’”

Instead of tf.placeholder(shape=[None, 2], dtype=tf.float32) use something like tf.compat.v1.placeholder(shape=[None, 2], dtype=tf.float32) if you don't want to disable v2 completely.

References

TensorFlow, "'module' object has no attribute 'placeholder'"

I've been trying to use tensorflow for two days now installing and reinstalling it over and over again in python2.7 and…

stackoverflow.com

Tensor Flow
Python
Linux
Placeholder
Keras

--

--

More from Talha Hanif Butt

PhD Student -- Signal and Systems Engineering, Halmstad http://pk.linkedin.com/in/talhahanifbutt

Recommended from Medium

Sms Abualbashrw

Sms Abualbashrw

A Canadian Landmark Hotel Inspired Me to Make an Incredible Mug of Hot Chocolate

Robin Hester

Robin Hester

Planning the Perfect Road Trip

Vedha Krishna Yarasuri

Vedha Krishna Yarasuri

Project Development to Paper Publication

butteredwaffles

butteredwaffles

Working with the Google Calendar API in Python3.6

Gagan Singh

Gagan Singh

in

Technology Hits

Azure Interview and certification CheatSheet

Tammy Torres

Tammy Torres

in

Dev Genius

Is Testing the Dark Side of the force?

Suneel Kumar

Suneel Kumar

Experience working with CDN and Server-side caching (Redis) in node js

Shivani Soni

Shivani Soni

Reasons To Migrate Codeigniter to Laravel

AboutHelpTermsPrivacy


Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Get unlimited access
Talha Hanif Butt

Talha Hanif Butt

10 Followers

PhD Student -- Signal and Systems Engineering, Halmstad http://pk.linkedin.com/in/talhahanifbutt

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech