There are two ways of creating random tensor :-
torch.randn([1,2], dtype=torch.float32, requires_grad=True)
and
torch.randn((1,2), dtype=torch.float32, requires_grad=True)
The random tensor’s dimension is 1x2 written in two ways [1,2] and (1,2).
Both of them returns a random tensor of 1x2 dimension. So, what is the difference between them?