Backport 1.8 gh 4533

Backport #4533: `BUG: fix broken operand initialization for einsum.`