ValueError: Expected parameter scale of distribution Normal to satisfy the constraint GreaterThan
所遇到的错误:相应的代码:importtorchimporttorch.distributionsasdistp=dist.Normalmu=torch.Tensor(torch.randn(2,2))logvar=torch.Tensor(torch.randn(2,2))pz_x=p(mu,logvar)#在这一步报错z=pz_x.rsample(torch.Size([1]))测试发现不是t