TorchLean API

NN.Spec.Core.Scalar

Scalar #

Spec-only scalar conventions.

These aliases fix their scalar to for mathematical reasoning. Typed tensors and model execution also support native Float/Float32 and FloatLib configured binary scalars through Context.

Because SpecScalar is , this is the module that brings in the real dictionary (NN.Spec.Core.Context.Real) and with it the real-analysis hierarchy. Anything that only needs Float or a general [Context α] should import NN.Spec.Core.Context instead and stay light.

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