Geeks of Coding

Join us on Telegram

Viewing 0 reply threads
  • Author
    • #1214
      Yash AroraYash Arora

      Question 1 –
      What is the purpose of the following line of code?
      x.view(-1,28*28 )

      Answer :
      Images are square and we have to convert them to a vector

      Question 2 –
      what does the following line of code do.
      train_dataset = dsets.MNIST(root='./data', train=True, download=True, transform=transforms.ToTensor())

      Answer :
      Provide the training labels and images as tensors

Viewing 0 reply threads
  • You must be logged in to reply to this topic.