We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
>>> import tensorflow as tf >>> devices = tf.config.experimental.list_physical_devices() >>> for device in devices: ... print(device) ... PhysicalDevice(name='/physical_device:CPU:0', device_type='CPU')
Running the keras mnist demo, it seem still works on cpu.
i try tf1-directml. it works both on gpu in win10-based and wsl2-based.
>>> devices = tf.config.experimental.list_physical_devices() >>> for device in devices: ... print(device) # gpu.name正是TF的gpu。 ... PhysicalDevice(name='/physical_device:CPU:0', device_type='CPU') PhysicalDevice(name='/physical_device:DML:0', device_type='DML')
Run same code above, it works on gpu.
btw, it's really exicted to use directml with integrated-gpu. In this small scale network, there is a significant improvement.
CPU avg Epoch 15s 18ms/step GPU avg Epoch 9s 186us/sample
The text was updated successfully, but these errors were encountered:
you can set environment variable DML_VISIBLE_DEVICES as in cuda
Sorry, something went wrong.
No branches or pull requests
Enviroment
Desciption
Running the keras mnist demo, it seem still works on cpu.
Expectation
i try tf1-directml. it works both on gpu in win10-based and wsl2-based.
Run same code above, it works on gpu.
btw, it's really exicted to use directml with integrated-gpu. In this small scale network, there is a significant improvement.
The text was updated successfully, but these errors were encountered: