torch.formatEquationError
function formatEquationError(equation: string, errorIndex: number, errorLength: number = 1): stringFormat an einsum equation with visual markers for errors.
Parameters
equationstring- The full equation
errorIndexnumber- Index in the equation where error occurred
errorLengthnumberoptional- Length of the error span (default: 1)
Returns
string