Skip to content

Commit 744c9ff

Browse files
committed
fixed
1 parent 1e21e82 commit 744c9ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pytorchTUT/302_classification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
n_data = torch.ones(100, 2)
1818
x0 = torch.normal(2*n_data, 1) # class0 x data (tensor), shape=(100, 2)
1919
y0 = torch.zeros(100) # class0 y data (tensor), shape=(100, 1)
20-
x1 = torch.normal(-2*n_data, 1) # class1 x data (tensor), shape=(100, 1)
20+
x1 = torch.normal(-2*n_data, 1) # class1 x data (tensor), shape=(100, 2)
2121
y1 = torch.ones(100) # class1 y data (tensor), shape=(100, 1)
2222
x = torch.cat((x0, x1), 0).type(torch.FloatTensor) # FloatTensor = 32-bit floating
2323
y = torch.cat((y0, y1), ).type(torch.LongTensor) # LongTensor = 64-bit integer

0 commit comments

Comments
 (0)