Is it possible to use python embedded interpreter via pybind in a C++ extension? I want to invoke a python function in c++ but get an error using py::module::import
My code looks like:
#include "torch/extension.h"

namespace py = pybind11;

void SomeFunction() {
  py::object python_func = py::module::import("python").attr("func")
  python_func();
}

I get the error:
image2768×328 161 KB
Do I have to set pybind11::embed somewhere?
I am not able to import torch/include/pybind11/embed.h as this file cannot be found