Giter Club home page Giter Club logo

Comments (4)

jstoecker avatar jstoecker commented on July 21, 2024

Yeah, it's a discussion we had and there isn't a perfect solution. A few reasons:

  • Some third-party scripts use the presence of a "GPU" device to mean the presence of CUDA and use CUDA-specific operators (e.g. CuDNNLSTM) that don't even have CPU implementations.
  • Some internal TF runtime code uses "GPU" to mean CUDA and do CUDA-specific optimizations.
  • Using "GPU" would prevent DML from coexisting with other backends. This may be more important when we move to TF2 if things transition to a more modular device backend.

from tensorflow-directml.

 avatar commented on July 21, 2024

(Firstly, thanks for this excellent project!)
This issue is about the cost of migrating form existing TensorFlow project to TensorFlow-DirectML.

Related question: When migrating form existing TF project, is it as easy as changing the device placement from /GPU:0 to /DML:0? Is there any other code which needs to be modified?
And, is there any "Brief Migration Guideline"?

(Currently I don't own a suitable graphic card for DirectML, so sorry that I can't test it by myself. But I'm sure that many developers are also wondering about the migration cost.)

from tensorflow-directml.

wchao1115 avatar wchao1115 commented on July 21, 2024

DirectML should work in most DirectX12-capable graphics cards. I want to also point out that for an existing script that doesn't explicitly request a /GPU device and that it doesn't have a strong dependency on any explicit cuDNN kernel, and simply opt for the default behavior, TensorFlow-DirectML defaults to /DML. There were some active discussion in the TensorFlow community at one point about overloading /GPU for a different backend in the context of TF2 pluggable device. But I believe the decision was to not mess with what people already use and risk breaking their expectation.

from tensorflow-directml.

 avatar commented on July 21, 2024

Thanks for detailed reply!

from tensorflow-directml.

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.