How do you construct a tensor from data in C++ API?
Python:
x = torch.Tensor([[1,2],[2,3],[3,4],[4,-1],[5,-5]])
C++:
std::vector<torch::jit::IValue> inputs;
auto input = torch::zeros({5,5});
input[0][0] = 1; // manually copy values one by one
input[0][1] = 2;
inputs.push_back(input);