How can I create a scalar in ATen?
I know that I can use double variables, but it’s rather inconvenient to write inner products as
// A and B are ATen (n, ) tensors
double inner_prod = 0.0;
for (idx = 0; idx < n; ++idx) {
    inner_prod += *(A[idx] * B[idx]).data<double>();
}