Error when trying to extract scalar out of chained Eigen::Tensor operation ending with .sum() I have the following script