Open main menu

CDOT Wiki β

Changes

DPS921/PyTorch: Convolutional Neural Networks

4 bytes added, 17:16, 29 November 2020
Implementation of a Neural Network
''' 8. Test the trained neural network to check whether the digit value shown in the image is in fact the number
''' the neural network determined it to be.
print(torch.argmax(net(X[0].view(-1, 784))[0]))