Hi, All, I have met an issue about converting the following from pytorch to libtorch (C++)
In pytorch it is:
return loss.data.cpu().numpy()
I write in C++ as:
return loss.data.cpu().numpy();
I get error no member “numpy()” for at::Tensor
Any suggestions ?
Much appreciated