TorchLean API

NN.Tensor.Internal.Syntax.Parser.Expression.Config

Expression parser configuration #

Each public pattern language selects duplicate-axis and ignored-axis rules through one explicit configuration value.

Duplicate and underscore rules for one expression.

  • allowUnderscore : Bool

    Whether the name _ is accepted, including repeated occurrences.

  • allowDuplicates : Bool

    Whether named axes may repeat; an ellipsis must still occur at most once.

Instances For

    Accept _ in parse_shape and einsum output expressions; only parse_shape ignores it.

    Instances For

      Rules used by an einsum input expression.

      Instances For