I just tried your code:
std::vector<torch::jit::IValue> inputs;
inputs.push_back(torch::ones({1, 3, 224, 224}));
inputs.push_back(torch::ones({1, 3, 224, 224}));
module->forward(inputs);
but it failed.
the code down works:
`std::vector<at::Tensor> inputs_vec;`
`inputs_vec.push_back(torch::ones({1, 3, 224, 224})); // 1xCxHxW`
`inputs_vec.push_back(torch::ones({1, 3, 224, 224})); // 1xCxHxW`
`at::Tensor input_ = torch::cat(inputs_vec);`
`std::vector<torch::jit::IValue> inputs;`
`inputs.push_back(input_ )`
`module->forward(inputs);`

That is all. Thanks again. sorry about the code format.