Git Product home page Git Product logo

Comments (6)

pengzhi1998 avatar pengzhi1998 commented on August 23, 2024

It seems that the computation of the network in the processes has been stuck for whatever reason. Is it caused by the PyTorch's version? (however I tried torch.0.4.0, the same problem happens)

from pytorch-rl.

Khrylx avatar Khrylx commented on August 23, 2024

Have you set the env variable as mentioned in README?

export OMP_NUM_THREADS=1

from pytorch-rl.

pengzhi1998 avatar pengzhi1998 commented on August 23, 2024

Wow, it works this time, thanks! So this command will influence training in both CPU and GPU?

from pytorch-rl.

Khrylx avatar Khrylx commented on August 23, 2024

It will only affect CPU based training. I have added it in code:

os.environ["OMP_NUM_THREADS"] = "1"

So you won't need to manually set it and it won't affect other programs.

from pytorch-rl.

pengzhi1998 avatar pengzhi1998 commented on August 23, 2024

Thank you!!!

from pytorch-rl.

pengzhi1998 avatar pengzhi1998 commented on August 23, 2024

Sorry to bother you Dr. Yuan, but I have one more question, that I didn't find termination or join operation for the processes in the code. Is there a need to join the workers after they have been used?

from pytorch-rl.

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.