Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2017-10

Is there any pascal interface to TensorFlow or other neural network tools?

9 messages · 7 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Dennis

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.

Dennis

Reply by email

Michael Van Canneyt
to Dennis
Dennis wrote 10 lines
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.

Reply by email

Dennis Poon
to Michael Van Canneyt: Tensorflow has a C library interface, the c_api.h header can be easily translated with…
Michael Van Canneyt wrote 23 lines
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.

That's good news. Thanks a lot.

Reply by email

schuler
to leledumbo: Try contacting schuler in Lazarus forum. Sent from:…

"> or even neural network libraries written in Pascal? Try contacting schuler in Lazarus forum. "

Hello, this is schuler!!!

You can find the most recent project update here:
https://forum.lazarus.freepascal.org/index.php/topic,39049.0.html

There are many neural network layers (convolution, maxpool, concat, full connect, local connect, ...) on 1D, 2D and 3D plus initialization functions (uniform, Glorot, He, LeCun). Although the OpenCL implementation is still cooking, the AVX implementation rocks.

Reply by email

Dennis Poon
to schuler
schuler wrote 15 lines
"> or even neural network libraries written in Pascal? Try contacting schuler in Lazarus forum. " Hello, this is schuler!!! You can find the most recent project update here: https://forum.lazarus.freepascal.org/index.php/topic,39049.0.html There are many neural network layers (convolution, maxpool, concat, full connect, local connect, ...) on 1D, 2D and 3D plus initialization functions (uniform, Glorot, He, LeCun). Although the OpenCL implementation is still cooking, the AVX implementation rocks.

Thanks.

Dennis

Reply by email

Bo Berglund
to jollytall
jollytall wrote
I have just completed the first release of such an interface for TensorFlow. You can check /tensorflowforpascal.

Did you notice the date of the previous post in this thread? It was done 2017-12-07

Bo Berglund Developer in Sweden

Reply by email