[fpc-pascal] Is there any pascal interface to TensorFlow or other neural network tools?

Michael Van Canneyt michael at freepascal.org
Sat Oct 28 11:58:28 CEST 2017



On Sat, 28 Oct 2017, Dennis wrote:

> or even neural network libraries written in Pascal?
>
> I know there are many python interfaces/libraries but I hope to use 
> Pascal entirely so that I don't have to run a python server along side 
> my Free Pascal program.
>
> Or, is it possible to call python from Free pascal?
>
> If not, in the worst case, I have to write  python tcp/ip server to 
> accepts commands from (and send back results to ) my FPC program.

Tensorflow has a C library interface, the c_api.h header can be easily
translated with h2pas.

https://github.com/tensorflow/tensorflow/blob/master/tensorflow/c/c_api.h

I did a quick run, it translates quite well.

Michael.



More information about the fpc-pascal mailing list