Pigrecos / TensorFlow.Delphi

TensorFlow.Delphi (TF.Delphi) provides a Delphi(Pascal) Standard binding for TensorFlow. It aims to implement the complete Tensorflow API in Delphi which allows Pascal developers to develop, train and deploy Machine Learning models with the Pascal Delphi
Apache License 2.0
74 stars 10 forks source link

Can not get it to compile #4

Open fsiek opened 1 year ago

fsiek commented 1 year ago

Tested it with different Delphi Enterprise versions.

10.3 gives E2393 invalid operator declaration in TensorFlow.Variable.pas line 63 and some more 10.4 gives serveral E2250 starting with There is no overloaded version of 'Create' that you can call with these arguments in Tensorflow.array_ops.pas line 344 11.0 gives [dcc32 Fatale error] TensorFlow.CondContext.pas(175): F2084 Interneral error: NC338

fsiek commented 1 year ago

As the result of the function _RemoveExternalControlEdges in TensorFlow.DApi is never used, I changed it to a procedure. Now the demo application can be compiled with Delphi 11.0 and I got it running.

All tests are ok except "Test Models". Getting exception c0000090 FLOAT_INVALID_OPERATION.

Pigrecos commented 1 year ago

mnistGAN Models experimental For testing, under development.

All tests are ok except "Test Models". Getting exception c0000090 FLOAT_INVALID_OPERATION.

wilsonning commented 10 months ago

[dcc32 Fatal Error] TensorFlow.DApi.pas(34): F2613 Unit 'Spring.Collections.Enumerable' not found. This file was not found from "https://bitbucket.org/sglienke/spring4d/src/master/Source/Base/Collections/" either.

KosMarlin commented 7 months ago

Tried to compile 'TensorFlowDelphi' with result (same as "wilsonning" at Jan 1?): 'Spring.Collections.Enumerable' not found. I found a 6 years old version at: "https://github.com/FSharpCSharp/Spring4D/blob/master/Source/Base/Collections/Spring.Collections.Enumerable.pas", but again no success.

Will there be an update of TF.D which is compatible to the actual (April 11, 2024) version of "https://bitbucket.org/sglienke/spring4d/src/master/"?

All in all great job! Thank you, @Pigrecos!