Pytorch tensor to numpy array : <p>I have a <code>pytorch</code> Tensor of size <code>torch.Size([4, 3, 966, 1296])</code></p>

<p>I want to convert it to <code>numpy</code> array using the following code:</p>

<p><code>imgs = imgs.numpy()[:, ::-1, :, :]</code></p>

<p>Can anyone please explain what this code is doing ?</p>
