美文网首页
WSL下的Ubuntu使用带GPU 的TensorFlow

WSL下的Ubuntu使用带GPU 的TensorFlow

作者: 青云直上 | 来源:发表于2022-05-10 17:53 被阅读0次

微软为了改变办公操作系统的形象也是拼了,出了WSL支持原生虚拟linux系统,还为WSL做了多个优化,其中就包括提供TensorFlow在WSL下的GPU支持。

环境要求

  • Windows11 或者 Windows 10 (21H2版本以后)

  • WSL下的Linux,如Ubuntu或Debian

  • 只支持 Python 3.5, 3.6, 3.7

安装最新的显卡驱动

AMD

Download and install AMD's driver

Intel

Download and install Intel's driver to use with DirectML from their website.

NVIDIA

Download and install NVIDIA's driver to use with DirectML from their website. For more information, see NVIDIA's GPU in Windows Subsystem for Linux (WSL) page.

安装

pip install tensorflow-directml

官方网站说只支持Tensorflow1.15,实测安装的已经到2.6了。应该是网站还没更新。

参考链接

TensorFlow with DirectML on WSL | Microsoft Docs

相关文章

网友评论

      本文标题:WSL下的Ubuntu使用带GPU 的TensorFlow

      本文链接:https://www.haomeiwen.com/subject/ttzlurtx.html