edit 13_feedforward.py
This commit is contained in:
@@ -45,7 +45,7 @@ print(samples.shape, labels.shape)
|
|||||||
for i in range(6):
|
for i in range(6):
|
||||||
plt.subplot(2, 3, i+1)
|
plt.subplot(2, 3, i+1)
|
||||||
plt.imshow(samples[i][0], cmap='gray')
|
plt.imshow(samples[i][0], cmap='gray')
|
||||||
# plt.show()
|
plt.show()
|
||||||
|
|
||||||
class NeuralNet(nn.Module):
|
class NeuralNet(nn.Module):
|
||||||
def __init__(self, input_size, hidden_size, num_classes):
|
def __init__(self, input_size, hidden_size, num_classes):
|
||||||
|
|||||||
Reference in New Issue
Block a user