Python code with C++ neural networks

Hey! Has anyone here coded neural networks in Panda3D using C++? I’m building a simulation of evolving creatures written in Python, with each creature having its own neural network controlling it. However, since neural networks can consume a lot of computation I figured it was best to program them in C++ to do the heavy lifting. The thing is, I have no idea how to integrate Python code with C++ in the same program. I read somewhere that Panda3D provides Python wrappers for C++ codes, is that true? How does that work? And would that be the best approach for my case? I’d only be writing the Neural Networks in C++ btw, the rest will be in Python.
Any help or ideas are welcomed! :slight_smile:

I think you can start with this.

1 Like