1.打开pytorch的官网 https://pytorch.org/

使用pytorch搭建神经网络ubuntu

点击getstarted

然后根据电脑的配置进行选择

使用pytorch搭建神经网络ubuntu

然后复制run this command到命令行中运行

使用pytorch搭建神经网络ubuntu

运行结束即可,这里使用的Ubuntu系统所以配置较为轻松,如果是window系统的话可能需要添加dll文件

使用pytorch搭建神经网络ubuntu

 然后我们进行测试

如下图所示显示我们可以运行pytorch模块了

使用pytorch搭建神经网络ubuntu

相关文章: