Skip to contents

value object constructor

Usage

val(data, label = "")

Arguments

data

Numeric value of the object

label

Optional character label for debugging

Represents a value node in the computational graph with automatic differentiation. This constructor function creates a new value object with the specified data and optional label.