I’m trying to utilize torch::nn::functional::pad however it appears that nn namespace is in not included in the build for ios (as i’ve read here 1). I’ve tried to include nn into the build by setting the NO_API property in the root CMakeLists.txt to OFF as suggested. However, when building with this changed property the build fails…
torch/csrc/api/src/nn/module.cpp:5:10: fatal error: 'torch/csrc/autograd/generated/VariableType.h' file not found
#include <torch/csrc/autograd/generated/VariableType.h>

Found a post where someone ran into this issue and apparently found a solution here 2… however their explanation is unclear about what was done to resolve it.
How does one ensure that VariableType.h is generated?