TorchLean API

NN.Runtime.Autograd.Torch.Core.Trainer.GraphOps

Graph Operations #

Interpret Ops programs as typed graph nodes. The recorded graphs serve evaluation, the autograd transforms and their proofs. Training does not use this instance: each trainer step records an eager tape.

@[instance_reducible]

Ops instance for the typed graph builder monad GraphM.

This interprets Ops primitives by recording typed SSA nodes rather than executing them immediately. Runtime.Autograd.TypedGraph.GraphM builds the graph data; Runtime.Autograd.Torch.TypedGraph packages it for repeated execution.