Solved by Matej_Kompanek in post #2 
              
              
                You could try wrapping your code with try catch block to see the exact message 
try
{
... your code
}
catch (const c10::Error& e)
{
	std::cout << e.msg() << std::endl;
}