TorchLean API

NN.Runtime.Autograd.Torch.Core.Ops.LinearAlgebra

Eager Tensor Operations #

PyTorch-style tensor operations backed by the eager CPU/CUDA tapes. These wrappers record runtime nodes, dispatch CUDA kernels when requested, and preserve the typed TensorRef surface.

Linear algebra and concatenation #

2D matrix multiplication. PyTorch: torch.matmul for 2D tensors.

Instances For

    Batched matrix multiplication. PyTorch: torch.bmm.

    Instances For

      Concatenate two vectors along dim 0. PyTorch: torch.cat([a,b], dim=0).

      Instances For

        Concatenate along dim 0 for tensors with leading dimension. PyTorch: torch.cat(..., dim=0).

        Instances For
          def Runtime.Autograd.Torch.Internal.EagerSession.sliceLeadingAxisRange {α : Type} (s : EagerSession α) [Zero α] [DecidableEq Spec.Shape] {n : } {sh : Spec.Shape} (x : TensorRef α (Spec.Shape.dim n sh)) (start len : ) (h : len + start n) :

          Slice along dim 0: x[start:start+len]. PyTorch: standard slicing.

          Instances For