Forum > Third party

Pascal for TensorFlow

<< < (5/5)


--- Quote from: domasz on February 03, 2023, 12:13:05 am ---I tried but can't compile it under Lazarus because of Springs4Delphi. Anybody knows how to use Springs4Delphi in Lazarus?

--- End quote ---

There are two separate wrappers mentioned in this thread. Does the other one compile?


--- Quote from: PierceNg on February 03, 2023, 02:44:36 am ---There are two separate wrappers mentioned in this thread. Does the other one compile?

--- End quote ---
This one?
Yeah, compiles, no problems.

This one uses Spring4Delphi which can't compiled because of types like this:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---TTimeSpan = TimeSpan.TTimeSpan  TStopwatch = Diagnostics.TStopwatch; I don't know how to substitute.

system.Timespan exists in trunk.

I have just found that this thread is still alive and found in it: There was a question above on the comparison with Now I looked at TensorFlow.Delphi and found that the two are not comparable.
The tensorflowforpascal is only a wrapper around the core Tensorflow functionality, i.e. the elementary operations. In my view it is simple, easy to use, with limited dependency, however it is as basic as basic tensorflow itself is.
The TensorFlow.Delphi on the other hand is a much more sophisticated, complex system, basically implementing the Keras functionality in pascal. As Keras is much more than TensorFlow (we remember that Keras was built as an AI environment over multiple mathematical libraries, and only recently it became TF only), so is its pascal counterpart. It has much more functionality, much more tuned for AI development, but also much more complex and has much more dependencies.
So, if you need something simple in programming, but hard(er) work to make an AI NN, and especially if you want to work under Linux, then I think tensorflowforpascal is a better choice.
On the other hand if you are under Windows/Delphi and are already familiar with the Keras world then TensorFlow.Delphi is a much better choice to migrate Keras to the pascal world.


[0] Message Index

[*] Previous page

Go to full version