Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/tfs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Pytorch 使用torch.nn.DataParallel与torch.distributions.Laplace抛出类型错误:';拉普拉斯&x27;对象是不可编辑的_Pytorch_Gpu_Distributed Computing - Fatal编程技术网

Pytorch 使用torch.nn.DataParallel与torch.distributions.Laplace抛出类型错误:';拉普拉斯&x27;对象是不可编辑的

Pytorch 使用torch.nn.DataParallel与torch.distributions.Laplace抛出类型错误:';拉普拉斯&x27;对象是不可编辑的,pytorch,gpu,distributed-computing,Pytorch,Gpu,Distributed Computing,我正在尝试在多个GPU上训练我的模型,但是我在向前传球时调用的torch.distributions.Laplace有一些问题。 我上传了一个没有torch.nn.DataParallel运行良好但在使用时失败的 有没有办法让这段代码在多个GPU上运行

我正在尝试在多个GPU上训练我的模型,但是我在向前传球时调用的
torch.distributions.Laplace
有一些问题。 我上传了一个没有torch.nn.DataParallel运行良好但在使用时失败的

有没有办法让这段代码在多个GPU上运行