I have a tensor that I would like to print for debugging
std::cout << &image_tensor;
you have to use the .vec or .flat methods.
let’s say the tensor is a
// for i in image_tensor.size … cout << i << “ “ << image_tensor.vec<int8>()(i)
see also this answer How to fill a tensor in C++