Einsum_parser.AxisKeyAn index pointing to any of a shape's axes, including the kind of the axis (Batch, Input, Output) and the position (which is counted from the end to facilitate broadcasting).
Note the following inconsistency due to differing conventions in function notation and matrix notation: for label specifications and einsum notation, we write "batch|inputs->outputs", but when we convert a shape to an Ndarray index we do it in the order [batch; outputs; inputs].
module T : sig ... endinclude module type of struct include T endval __kind_of_sexp__ : Sexplib0.Sexp.t -> kindval kind_of_sexp : Sexplib0.Sexp.t -> kindval sexp_of_kind : kind -> Sexplib0.Sexp.tval hash_fold_kind :
Ppx_hash_lib.Std.Hash.state ->
kind ->
Ppx_hash_lib.Std.Hash.stateval hash_kind : kind -> Ppx_hash_lib.Std.Hash.hash_valuetype t = T.t = {in_axes : kind;pos : Base.int;Indices start at 1 (note this is axis index, dimension indices are always 0-based), counted from the end if from_end is true.
from_end : Base.bool;Axes are indexed from the front (rarely) or from the end (typically), to avoid reindexing when broadcasting.
*)}val t_of_sexp : Sexplib0.Sexp.t -> tval sexp_of_t : t -> Sexplib0.Sexp.tinclude sig ... endval comparator : (T.t, comparator_witness) Base__Comparator.comparator