Skip to content

BoxedForm


class BoxedForm<Value, Form>(x:Value, f:Form) < Expression<Value>

Boxed form.

  • Value: Result type.
  • Form: Expression form.

Member Variables

Name Description
x:Value Memoized result.
f:Form? Expression form.
d:Value? Accumulated upstream gradient.
gen:Integer Generation label.
evalCount:Integer Number of times eval() has been called.
visitCount:Integer Number of times reval() or grad() has been called. Used to obtain pre- and post-order traversals of the expression graph.