Coder Social home page Coder Social logo

Comments (12)

rns4731 avatar rns4731 commented on September 26, 2024 5

Alternatively, you could let tensorflow pick which nodes to put it on with:
with tf.Session(config=tf.ConfigProto(
allow_soft_placement=True, log_device_placement=True)) as sess:

from prettytensor.

eiderman avatar eiderman commented on September 26, 2024 2

I was able to reproduce the bug and the fix was to assign a device to the problem operation:

with tf.device('/cpu:0'):
data.embedding_lookup(...)

from prettytensor.

eiderman avatar eiderman commented on September 26, 2024 1

sorry, errant click.

The basic problem is that it is trying to force a non-gpu op onto a GPU. I will see where the problem is coming from.

from prettytensor.

fmkazemi avatar fmkazemi commented on September 26, 2024 1

I encountered this problem on Tensorflow-gpu 1.8 and Tensorflow-gpu 1.5 on GPU clusters but I didn't get this issue after installing Tensorflow-gpu 1.0.1.
Also, the code below was used on all tests.
config = tf.ConfigProto()
config.gpu_options.allocator_type = 'BFC'
config.gpu_options.allow_growth = True
with tf.Session(config=tf.ConfigProto(allow_soft_placement=True, log_device_placement=True)) as sess:

from prettytensor.

Bella31 avatar Bella31 commented on September 26, 2024 1

Actually, the problem was in my code. It turned out that I called Saver in "with tf.device(device)" clause. When I put it under "with tf.Session(config=tf.ConfigProto(allow_soft_placement=True))" it was resolved

from prettytensor.

eiderman avatar eiderman commented on September 26, 2024

Thanks for the bug report. I won't be able to reproduce this until I get to a computer with the proper version of cuda. The problem is basically that

from prettytensor.

mschonwe avatar mschonwe commented on September 26, 2024

Thanks - works now.

from prettytensor.

abaybektursun avatar abaybektursun commented on September 26, 2024

@nistala Thank you. I must have missed this in the documentation.
"If you would like TensorFlow to automatically choose an existing and supported device to run the operations in case the specified one doesn't exist, you can set allow_soft_placement to True in the configuration option when creating the session."

from prettytensor.

Bella31 avatar Bella31 commented on September 26, 2024

Encountered a similar problem with Tensorflow-gpu 1.8 with the function save/SaveV2.
I get the error "Could not satisfy explicit device specification '/device:GPU:0' because no supported kernel for GPU devices is available." even though I specify in my session:
config=tf.ConfigProto(allow_soft_placement=True)

from prettytensor.

lucaswu avatar lucaswu commented on September 26, 2024

@Bella31 , have you fixed this problem. I have the same problem. Thanks.

from prettytensor.

Bella31 avatar Bella31 commented on September 26, 2024

No, I didn't, also will be happy to hear if there is a solution.

from prettytensor.

RayXu14 avatar RayXu14 commented on September 26, 2024

I think giving using InteractiveSession might help. It seems that use Session and that operation can be done on gpu.

from prettytensor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.