Integrate Python based TensorFlow into a .NET application

It seems that in order to fully use TensorFlow and associated libraries I need to access it from Python. Utilizing TensorFlow requires building rather complicated graphs which Python helper libraries (eg Keras) automate in sophisticated ways. I don't see a way to do that directly from .NET. See for example the respective GitHub discussion about C# support.

My idea is this: The main C# application will call into a Python application to access TensorFlow. That way most code will remain in C# land. I can use CPython which has full support for everything (IronPython does not).

How would I go about "calling into a Python application"? I assume I will need to run python.exe in a child process and make it execute commands. The child process will need to remain running between commands so that I can keep/share objects and data.

How would I best go about doing this? I don't quite know where to start.


Have a look on this: https://github.com/migueldeicaza/TensorFlowSharp

TensorFlowSharp are .NET bindings to the TensorFlow library. This surfaces the C API as a strongly-typed .NET API for use from C# and F#.

链接地址: http://www.djcxy.com/p/39818.html

上一篇: 运行Windows通用应用程序桌面桥接的makepri的神秘错误

下一篇: 将基于Python的TensorFlow集成到.NET应用程序中