Skip to content

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

@gtm2122

Description

@gtm2122

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')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions