The example is defined as
int main() {
  torch::Tensor tensor = torch::eye(3);
  std::cout << tensor << std::endl;
}

so it seems you’ve changed the torch::eye call to tensor::eye.
Could you revert this change and retry the build?