Hi,

I have a tensor M=(1,2,3) , I want each as the mean to generate a Gaussian distribution.

The result is that M=( torch.empty(1).normal_(**1**, 1.0), torch.empty(1).normal_(**2**, 1.0), torch.empty(1).normal_(**3**, 1.0))

how I can do that?

Hi,

I have a tensor M=(1,2,3) , I want each as the mean to generate a Gaussian distribution.

The result is that M=( torch.empty(1).normal_(**1**, 1.0), torch.empty(1).normal_(**2**, 1.0), torch.empty(1).normal_(**3**, 1.0))

how I can do that?

Would a list comprehension work?

```
M = torch.tensor([1,2,3])
D = [torch.empty(1).normal_(m, 1.0) for m in M]
```