How to use tensorflow v2 with directml backend


I have a computer with the windows operating system with an amd gpu (rx 5600 xt), and I want to run tensorflow on the gpu.
I found "tensorflow-directml" which allows me to run tensorflow on my gpu, but it uses tensorflow 1.14.0.
Is there another version of "tensorflow-directml" that uses tensorflow v2, or is there another way to run tensorflow in my gpu?

Thanks, and sorry if I wrote something wrong or inaccurate


Microsoft has announced DirectML-plugin for tensorflow 2 in June this year. Check it out at this link: However I believe for your particular GPU model DirectML-plugin may not be compatible as of yet.

Answered By – moth

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave a Reply

(*) Required, Your email will not be published