TorchLean API

NN.Spec.Core.Scalar

Scalar #

Spec-only scalar conventions.

The spec layer fixes its scalar to for mathematical reasoning. Runtime scalars remain Float/NeuralFloat and are handled separately.

References / context:

@[reducible, inline]

Spec scalars live in .

Instances For
    @[reducible, inline]
    abbrev Spec.SpecTensor (s : Shape) :

    Spec tensors are Real-typed tensors.

    Instances For
      @[reducible, inline]

      Use the existing Context for SpecScalar when needed.

      Instances For