logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

‘numpy.ndanrray‘ object has no attribute ‘permute‘

问题描述:对numpy.ndarray格式数据进行维度转换,报错:'numpy.ndanrray' object has no attribute 'permute'原因分析:如提示所言,numpy.ndanrray没有permute这个属性解决方案:转换为Tensor,Tensor具有这个属性tensordata = torch.from_numpy(numpydata)...

#pytorch#神经网络#深度学习
到底了