Anaconda for windows 10 subsystem7/30/2023 ![]() TensorFlow with DirectML samples and feedbackĬheck out our samples or utilize your exisiting model scripts. 11:27:18.337830: I tensorflow/core/common_runtime/eager/:571] Executing op Add in device /job:localhost/replica:0/task:0/device:DML:0 11:27:18.240065: I tensorflow/core/common_runtime/dml/dml_device_:32] DirectML: creating device on adapter 0 (AMD Radeon VII) 11:27:18.235973: I tensorflow/core/common_runtime/dml/dml_device_:45] DirectML device enumeration: found 1 compatible adapters. You should see output similar to the following, with the add operator placed on the DML device. Tf.enable_eager_execution(tf.ConfigProto(log_device_placement=True)) Copy the following lines into an interactive Python session. Once you've installed the tensorflow-directml package, you can verify that it runs correctly by adding two tensors. The tensorflow-directml package only supports TensorFlow 1.15. Once Miniconda is installed in WSL, create an environment using Python named directml, and activate it through the following commands. Install Miniconda by following the guidance on Anaconda’s site, or by running the following commands in WSL. The rest of this setup assumes that you use a miniconda environment. There are many tools you can use to setup a virtual Python environment-for these instructions, we'll use Anaconda's Miniconda. We recommend setting up a virtual Python environment inside your WSL instance. ![]() You can check the version number by running the following command in PowerShell. You can find it in Advanced options within the Windows Update section of the Settings app.įor these features, you need a kernel version of 5.10.43.3 or higher. Ensure you have the latest kernel by selecting Check for updates in the Windows Update section of the Settings app.Įnsure you have the Receive updates for other Microsoft products when you update Windows enabled. Once you've installed the above driver, ensure you enable WSL and install a glibc-based distribution (like Ubuntu or Debian). Set up TensorFlow with DirectML Install WSL For more information, see NVIDIA's GPU in Windows Subsystem for Linux (WSL) page. NVIDIAĭownload and install NVIDIA's driver to use with DirectML from their website. Intelĭownload and install Intel's driver to use with DirectML from their website.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |