Phone

+919997782184

Email

support@roboticswithpython.com

Geeks of Coding

Join us on Telegram

Viewing 0 reply threads
  • Author
    Posts
    • #1203
      Yash AroraYash Arora
      Keymaster

      Question 1 –
      What does the following line of code do?
      optimizer.step()

      Answer :
      Makes an update to its parameters

      Question 2
      What’s wrong with the following lines of code?

      optimizer = optim.SGD(model.parameters(), lr = 0.01)
      model=linear_regression(1,1)

      Answer :
      The model object has not been created. As such, the argument that specifies what Tensors should be optimized does not exist

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