I am running a simple model in C++. The input tensors are created as:
std::vector<torch::jit::IValue> inputs;
inputs.push_back(torch::from_blob(X_vec.data(), sizes));

How can I normalize the input data? I found the following function:
torch::data::transforms::Normalize<>(0.5, 0.5)
But I do not know how to apply it.