Closed kennethsible closed 2 years ago
The following einsum call would produce an exception (einsum() must provide at least one operand) if the RHS of any rule in an FGG contained only a single nonterminal since that RHS cannot be expanded with the product rule algorithm.
einsum
einsum() must provide at least one operand
torch.einsum(equation, *(tensors[:i] + tensors[(i + 1):]))
The following
einsum
call would produce an exception (einsum() must provide at least one operand
) if the RHS of any rule in an FGG contained only a single nonterminal since that RHS cannot be expanded with the product rule algorithm.