A pattern, shape, or argument error raised by an Einops operation.
The exception retains the original call in these fields:
operation—:rearrange,:reduce,:repeat, or:parse_shape.pattern— the supplied pattern, including an invalid non-string value.shape— the tensor's ordinary shape, or:unknownfor a non-tensor input.axes— the supplied length arguments;[]forEinops.parse_shape/2.reason— a description of the validation failure.
message combines the reason and call context for display. Axis indexes in
diagnostics are zero-based. Validation runs eagerly for ordinary calls and
during tracing for Nx.Defn calls.