Hello, all
I have a pytorch model and need to convert to C++.
In pytorch it is:
m=layers[i]
x_f = F.relu(m(x))
where m is one layer, after conversion to C++, I write it as:
torch::Tensor x_f = torch::nn::functional::relu(layers[i]->as torch::nn::Sequential ()->forward(x));
I just would like to make sure they are equivalent. Any suggestions ?
Thanks.