Thanks a lot.
auto acc = torch::mean(get<1>(output_label.max(1))== y); works
But
float acc = torch::mean(get<1>(output_label.max(1))== y); doesnot work
How shall I convert acc from tensor to float in this case please ?
Thanks.