## PyTorch torch.randn_like() Method

The torch.randn_like() method returns a tensor the same size as input filled with random numbers from a normal distribution with mean 0 and variance 1. Syntax torch.randn_like(input, dtype=None, layout=None, device=None, requires_grad=False) Parameters input (Tensor): The size of the output tensor will be inferred from this tensor. dtype (optional): The desired data type of returned tensor. … Read more