Undefined reference to `c10::Scalar at::Tensor::item<c10::Scalar>() const'

Hi,

So I am trying to obtain a value from a tensor and convert it to c10::Scalar so that I can pass the value to at::arange(). I have tried many combinations of this. How can I do it?

auto s = e[0].item<torch::Scalar>();