PyTorch Forums
Pad a tensor with random values
Eta_C
February 24, 2021, 3:09am
2
result = torch.randn(5, 5) result[1:-1, 1:-1] = x
show post in topic