Advertisement
Guest User

Untitled

a guest
Jul 18th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. output=model(inputs) #calcualte output using input
  2.  
  3. loss=criterion(output,targets) #calculate loss
  4. loss.backward() #Backpropagate loss
  5.  
  6. optimiser.step() #optimiser
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement