Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

module 'tensorflow' has no attribute 'placeholder' #1160

Open
gtm2122 opened this issue Oct 10, 2022 · 1 comment
Open

module 'tensorflow' has no attribute 'placeholder' #1160

gtm2122 opened this issue Oct 10, 2022 · 1 comment

Comments

@gtm2122
Copy link

gtm2122 commented Oct 10, 2022

New Issue Checklist

Issue Description

[INSERT DESCRIPTION OF THE PROBLEM]

When I do pip install tensorflow-gpu==2.0.0-rc1 I get an error
ERROR: Could not find a version that satisfies the requirement tensorflow-gpu==2.0.0-rc1 (from versi
ons: 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.6.0, 2.6.1, 2.6.2, 2.6.3, 2.6.4, 2.6.5, 2.7.0rc0, 2.7.0rc1, 2.7.0, 2.7.1, 2.7.2, 2.7.3, 2.7.4, 2.8.0rc0, 2.8.0rc1, 2.8.0, 2.8.1, 2.8.2, 2.8.3, 2.9.0rc0, 2.9.0rc1, 2.9.0rc2, 2.9.0, 2.9.1, 2.9.2, 2.10.0rc0, 2.10.0rc1, 2.10.0rc2, 2.10.0rc3, 2.10.0)
ERROR: No matching distribution found for tensorflow-gpu==2.0.0-rc1

Upon looking at the versions I See that there is no 2.0.0 but there is a 2.10.0rc1, I install this version. When I install this version I get the error module 'tensorflow' has no attribute 'placeholder' when trying to run the sample code below

Reproducible Code

  • Which OS are you using ? Linux x86_64
  • Please provide a reproducible code of your issue. Without any reproducible code, you will probably not receive any help.

[INSERT CODE HERE]

import tensorflow as tf
batch_size = 1
nw = 1
nh = 1
nz = 1
t_image_good = tf.placeholder('float32', [batch_size, nw, nh, nz], name='good_image')
@zsdonghao
Copy link
Member

The placeholder is for TensorFlow 1.0, we use TensorFlow 2.0 in the latest TensorLayer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants