使用带有无效参数组合的 torch.normal 时出错

问题描述

我在使用 torch.normal 时遇到一些错误

我不知道是什么问题。

torch.normal(mean=0,std=1,size=(128,100)).cuda()

 TypeError: normal() received an invalid combination of arguments - got (std=int,mean=int,size=tuple,),but expected one of:
 * (Tensor mean,Tensor std,torch.Generator generator,Tensor out)
 * (Tensor mean,float std,Tensor out)
 * (float mean,Tensor out)

有什么问题?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)