Closed davidweichiang closed 2 years ago
Desired behavior:
>>> torch.einsum('->', torch.tensor(1.)) tensor(1.)
Actual behavior:
>>> eq = compile_equation('->') >>> einsum(eq, torch.tensor(1.), block_size=1) ... File ".../torch_semiring_einsum/equation.py", line 159, in lookup return arg[index].permute(self.permutation) IndexError: too many indices for tensor of dimension 0
Desired behavior:
Actual behavior: