Use Executorch's Module Extension API on arm64 Mac

Hi @lucylq, thank you so much for the quick reply.

I want to use the Module API instead of the lower level APIs used in the executor_runner.

I wrote my own run script before (outside the executorch directory) and ran into the same issue. So I thought I might just try if my Cmake build is missing some reference or so . That’s why I started to edit the executor_runner. It’s basically taken from this tutorial:
https://pytorch.org/executorch/stable/extension-module.html#running-an-executorch-model-using-the-module-extension-in-c

#include <executorch/extension/module/module.h>
#include <executorch/extension/tensor/tensor.h>

#include <cassert>
#include <iostream>

using namespace ::executorch::extension;

int main(int argc, char **argv)
{
    // Create a Module.
    Module module("example/path.pte");

    // Wrap the input data with a Tensor.
    float input[1 * 3];
    auto inTensor = from_blob(input, {1, 3});

    // ......

    // Perform forward
    const auto result = module.forward(inTensor);

    // Check for success or failure.
   // ......
}