Std::cout printing without tensor value

I am using mathematical operations in the libtorch C++
However, when I try to make a scalar-tensor product, the cout returns only the shape of the tensor without values.
The corresponding printing info of the last iteration:

Why this error occurs? Is this a computational error or something else?

Is there any tutorial materials for mathematical operations of libtorch?