Get unlimited access
Open in app
Home
Notifications
Lists
Stories

Write
Talha Hanif Butt
Talha Hanif Butt

Apr 25

·
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

--

--

More from Talha Hanif Butt

Research Associate, CVGL, LUMS http://pk.linkedin.com/in/talhahanifbutt

Love podcasts or audiobooks? Learn on the go with our new app.

Try Knowable

Recommended from Medium

CUBE

CUBE

in

CUBE

The Procedure of EOScanner Development

Imran Shahid

Imran Shahid

5 Ways To Run Background Tasks On Azure

Saeid Rezaei

Saeid Rezaei

Golang Web Development

YShu

YShu

in

Unity2D Game-Galaxy Shooter Dev Log

8-Laser Set Up — Concept of Prefab

Waytohksharma

Waytohksharma

failed to sync *v1.Ingress: context deadline exceeded with EKS

HackDavis

HackDavis

#WinnerSeries GISt

MacleSoft

MacleSoft

“React Native(Facebook) Vs Flutter(Google)”: Which one is Ultimate winner?

Aleia Knight

Aleia Knight

in

Python in Plain English

The Other 3D: Deploying Django with Docker

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
Talha Hanif Butt

Talha Hanif Butt

Research Associate, CVGL, LUMS http://pk.linkedin.com/in/talhahanifbutt

More from Medium

Talha Hanif Butt

Talha Hanif Butt

Basics before starting with Robotics — Part 7

Judy Gibson

Judy Gibson

How did the shift key get into string of uppercase letters?

Nnkg

Nnkg

How to install GDAL in a Python virtual environment

Dr. Nicola Mingotti

Dr. Nicola Mingotti

Run C++ code in Jupyter

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable