Phone

+919997782184

Email

support@roboticswithpython.com

Geeks of Coding

Join us on Telegram

Home Forums Assignment courserra IBM AI Engineering Professional Certificate Deep Neural Networks with PyTorch WEEK 2 – Training Parameters in PyTorch – QUIZ

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

      Question 1 –
      What does the following line of code do :
      w.grad.data.zero_()

      Answer :
      zero the gradients before running the backward pass

      Question 2 –
      What does the following line of code do :
      w.data = w.data - lr * w.grad.data

      Answer:
      update parameters

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