Skip to content

Instantly share code, notes, and snippets.

x1 = torch.randn(5)
x2 = x1.clone()
x1.requires_grad = True
x2.requires_grad = True
alpha = 1 - 0.5
beta = 1 + 0.53
x1 = torch.randn(5)
x2 = x1.clone()
x1.requires_grad = True
x2.requires_grad = True
alpha = 1 - 0.5
beta = 1 + 0.53
x1 = torch.randn(5)
x2 = x1.clone()
x1.requires_grad = True
x2.requires_grad = True
alpha = 1 - 0.5
beta = 1 + 0.53
x1 = torch.randn(5)
x2 = x1.clone()
x1.requires_grad = True
x2.requires_grad = True
alpha = 1 - 0.5
beta = 1 + 0.53