Changes to tensor-contract and updates to the necessary dependencies