Comments (4)
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.
(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.
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.
Thanks for detailed reply!
from tensorflow-directml.
Related Issues (20)
- Not able to use my own callbacks HOT 3
- Tensorflow-directml is not making any difference in processing times in GPU vs CPU HOT 1
- AMD APU support? HOT 2
- Cannot assign a device for operation embedding/embeddings/Initializer/random_uniform/ HOT 5
- directml on custom tensoflow build ? HOT 1
- Windows Camera post process(DMFT) with DirectML(Tensorflow) HOT 10
- It's not working on Intel Graphics 5500 HOT 1
- Use c api to load pb models HOT 1
- how to set the default device using cAPI?
- session run crashed when runing on nvidia gpu HOT 1
- Could not identify NUMA node of platform GPU ID 0, defaulting to 0. Your kernel may not have been built with NUMA support. HOT 2
- unbox expects Dml at::Tensor as inputs HOT 1
- Is it not supports the amd gpus without rocm?
- Does directml support multi-GPU training
- TensorFlow-DirectML Does Not Exist HOT 7
- AttributeError: module 'tensorflow' has no attribute 'float32' HOT 1
- CPU instructions notification after installing
- python newer versions support
- tensorflow GPU on WSL2 produces a segmentationfault
- RC astro tool operations not supported in DirectML HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tensorflow-directml.