…additionally, when i try with example data, like this:
std::shared_ptr<torch::jit::script::Module> module = torch::jit::load("model.pt");
	module->to(torch::kCUDA);
	assert(module != nullptr);
	std::cout << "ok\n";


	std::vector<torch::jit::IValue> inputs;
	inputs.emplace_back(torch::rand({ 64, 3, 224, 224 }));

	module->forward(inputs).toTensor();

I get the same crash. Do I need to create a model class in c++ ? Or should this be working? Thank you!