value R6 class
value.Rd
value R6 class
value R6 class
Details
Represents a node in the computational graph with automatic differentiation. Each value object holds data, gradient, a backward function, previous nodes, and an operation name.
Public fields
data
Numeric value of the object
grad
Gradient value, initially set to 0
backward_fn
A function that performs the backward pass (gradient computation)
prev
A list of previous nodes in the computational graph
op
A character string representing the operation associated with the node