If you want to sample from a normal distribution with mean mu and std sigma then you can simply z = torch.randn_like(mu) * sigma + mu.
確定! 回上一頁