Pytorch Linear Algebra
Sample Code
x = [[1.0],[1.0]] W = [[1.0,1.0],[1.0,2.0]] input = torch.tensor(x) weights = torch.tensor(W, requires_grad=True) result = weights @ input lresult = result.tolist()
Topics
Autograd and Linear Algebra
Contents