赞
踩
一开始版本不对:
出错:'Adam' object has no attribute 'defaults'
但是pip或者conda安装的时候弹出的问题是:
the following packages are not available from current channels: - pytorch==1.0.0
解决办法:
- # CPU Only
- conda install pytorch-cpu==1.0.0 torchvision-cpu==0.2.1 cpuonly -c pytorch
官网链接从里面直接找对应版本(包括你电脑的版本)。
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。