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.
image
The corresponding printing info of the last iteration:
image

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

Is there any tutorial materials for mathematical operations of libtorch?