Hi everyone, I am trying to use C++ frontend for predicting.
// Execute the model and turn its output into a tensor.
at::Tensor output = module->forward(inputs).toTensor();
std::cout << output << '\n';
Following the C++ tutorial, the standard c++ output function (std::cout) will generate type information “[ Variable[CPULongType]{} ]”.
0
[ Variable[CPULongType]{} ]
1
[ Variable[CPULongType]{} ]
0
[ Variable[CPULongType]{} ]
0
[ Variable[CPULongType]{} ]
1
[ Variable[CPULongType]{} ]
0
[ Variable[CPULongType]{} ]
1
[ Variable[CPULongType]{} ]
0
[ Variable[CPULongType]{} ]
1
[ Variable[CPULongType]{} ]
Does anyone know how to print predictions without [ Variable[CPULongType]{} ] ?