I started from the HelloWorld example on iOS and everything worked until i tried to add nn functionality like
auto loss = torch::nn::MSELoss(); // Error: No member named 'nn' in namespace 'torch'

Is there a way to include torch::nn and torch::nn::functional API in iOS?