Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Derived Nodes

Derived nodes calculate their internal value from other values in the graph.

Any struct which derives Value can be used as a Derived Node. In order to create a derived node, however, we'll need to define:

  • An Operation: How to transform other nodes and values in to the derived node's internal value.
  • Dependencies: The required values of the operation. Implicitly, dependencies specify edges in the computation graph.

Let's look at these in more detail.