TorchLean API

NN.Runtime.Autograd.Torch.Core.Functional.Ops

Backend Operation Interface #

Ops supplies the tensor primitives for models shared by eager and typed graph execution. Ref and DataRef select the reference types of the current backend.

Tensor operations shared by eager and typed graph execution.

A model is polymorphic over this class. Eager instances execute and record a tape; typed graph instances build reusable graph data. Each instance must preserve the corresponding operator's forward and VJP semantics.

Instances
    @[reducible, inline]
    abbrev Runtime.Autograd.Torch.Ref {m : TypeType} {α : Type} [TorchLean.Storage α] [Context α] [Ops m α] (s : Spec.Shape) :

    Differentiable reference type of the current backend.

    Instances For
      @[reducible, inline]
      abbrev Runtime.Autograd.Torch.DataRef {m : TypeType} {α : Type} [TorchLean.Storage α] [Context α] [Ops m α] (β : Type) [TorchLean.Storage β] (s : Spec.Shape) :

      Backend representation of a non-differentiable tensor.

      Instances For