A question about how to translate torch::tensor type into base type in c++?
Such as:

torch::Tensor(False) -> bool(False);

torch::Tensor(123) -> int(123);  

torch::Tensor(3.1415) -> double(3.1415);


or like tensor function:
int a = torch.tensor(123).data  // there is not data elemenet

please help me, Thanks.