flâneur — a map of the web's best reading

What is PyTorch leaf node? | B. Nikolic Software and Computing Blog

bnikolic.co.uk · 234 words · saved by 1 readers

Understanding what a PyTorch leaf node is intuitive when you remember that PyTorch automatic differentiation is in the backward direction compared to the way the program is executed to compute its value – i.e., it is a backward-mode automatic differentiation.

Understanding what a PyTorch leaf node is intuitive when you remember that PyTorch automatic differentiation is in the backward direction compared to the way the program is executed to compute its value – i.e., it is a backward-mode automatic differentiation. Below are a couple of slides I’ve used before to illustrate backward mode autodiff: In PyTorch leaf nodes are therefore the values from which the computation begins . Here a simple program illustrating this: # The following two values are the leaf nodes x = T . ones ( 10 , requires_grad = True ) y = T . ones ( 10 , requires_grad = True )

Explore this link on the map →

related reading