官方文档:pybind11 documentation

简单绑定:

  • 属性绑定

  • 函数绑定 Functions - pybind11 documentation

  • 类绑定

  • python与c++之间的类型转换

  • python通过wrapper来使用c++中定义的对象

  • c++通过wrapper来使用python对象

  • c++和python之间通过拷贝来类型转换

如何交换大块张量数据:
NumPy - pybind11 documentation

对象的生命周期

另外还有一个在官方文档里没怎么讲的东西,如何debug
Debug a Python C/C++ Pybind11 extension in VSCode [Linux] - Stack Overflow
Recommended way to debug pybind11 · Issue #1931 · pybind/pybind11 · GitHub
unix - How to attach a process in gdb - Stack Overflow