Giter VIP home page Giter VIP logo

Comments (5)

shenweichen avatar shenweichen commented on May 24, 2024 2

@Cong-Zou
first check if you have instelled deepctr and tensorflow-gpu in the same evironment.
then, run the following code and make sure thers is at least one GPU device in the output of the code.

import os
from tensorflow.python.client import device_lib
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "99"
 
if __name__ == "__main__":
    print(device_lib.list_local_devices())

from deepctr.

shenweichen avatar shenweichen commented on May 24, 2024

@Cong-Zou Hi,if you have installed tensorflow-gpu,it will run with GPU automatically

from deepctr.

Cong-Zou avatar Cong-Zou commented on May 24, 2024

Thank you for the reply..
The fact is that I have installed tensorflow-gpu 1.6.0..
But it still runs with CPU..

from deepctr.

Cong-Zou avatar Cong-Zou commented on May 24, 2024

They are in the same environment for sure.
Thanks a lot!
I will test the code tomorrow morning and tell you the result then..

from deepctr.

Cong-Zou avatar Cong-Zou commented on May 24, 2024

I have solved it. Thank you!
I uninstalled the tensorflow-gpu-1.6.0 and deepctr and then I installed them again. Now it finally works.
The reason might be that my tensorflow-gpu has some package dependency problems..

from deepctr.

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.