Hi,
I’ve created a bug report you can track here. https://github.com/pytorch/pytorch/issues/17165 125
Edit:
you should be able to run it with:
    std::vector<torch::jit::IValue> inputs;
    std::vector<torch::jit::IValue> tuple;
    tuple.push_back(torch::zeros({5, 10}));
    tuple.push_back(torch::zeros({5, 10}));
    inputs.push_back(torch::jit::Tuple::create(tuple));

although I’m keeping the issue open because we should consider a fix so that your examples work.