XOR example¶. Constructing a model¶. In [7]:. X = torch.Tensor([[0,0],[0,1], [1,0], [1,1]]) y = torch.Tensor([0,1,1,0]) print(X) print(y). tensor([[0., 0.] ...
確定! 回上一頁