Parameters
equation: string
numTensors: number
Returns {
allDims: string[];
idDims: number[][];
summedDims: number[];
}
An object consisting of the following fields:
- allDims: all dimension names as strings.
- summedDims: a list of all dimensions being summed over, as indices to
the elements of
allDims
.
- idDims: indices of the dimensions in each input tensor, as indices to
the elements of `allDims.
allDims: string[]
idDims: number[][]
summedDims: number[]
Parse an equation for einsum.