TorchLean API

NN.Runtime.Autograd.Torch.Core.Trainer.EagerOps

Eager Operations #

Run an Ops program against the current tape. The instance lives here so evaluation and recording can use it without importing trainer construction.

@[reducible, inline]

Monad used for the eager Ops instance: read an Internal.EagerSession α and execute in IO.

This is the backend that makes Ops programs execute immediately by mutating a hidden runtime tape.

Instances For
    @[instance_reducible]

    Ops instance for the eager Torch-style runtime.

    This interprets Ops primitives by immediately executing them against the hidden mutable tape in the current Internal.EagerSession.