Recent

Author Topic: Pascal for TensorFlow  (Read 10416 times)

domasz

  • Full Member
  • ***
  • Posts: 196
Re: Pascal for TensorFlow
« Reply #15 on: January 27, 2023, 03:42:07 pm »
I can help fix some inline variables. With just a few people we could get it done by the end of the weekend. Anybody else wants to help?

Thaddy

  • Hero Member
  • *****
  • Posts: 12931
Re: Pascal for TensorFlow
« Reply #16 on: January 27, 2023, 04:11:19 pm »
Alas there is the rather unfortunate dependence on string4delphi. Will take more than a weekend, I suppose.
In memory of Gordon Moore  (January 3, 1929 – March 24, 2023) Just double the heaven every two years from now.

Root

  • New member
  • *
  • Posts: 7
Re: Pascal for TensorFlow
« Reply #17 on: January 27, 2023, 04:54:30 pm »
Thanks, any contribution is welcome .

i have limited the use of spring4d. I use it for the Enumerable<TSource> type because it includes practically all the methods of the IEnumerable class of c# and python. then it is used for Tuple and Nullable types.

domasz

  • Full Member
  • ***
  • Posts: 196
Re: Pascal for TensorFlow
« Reply #18 on: January 27, 2023, 05:51:05 pm »
I use it for the Enumerable<TSource> type because it includes practically all the methods of the IEnumerable class of c# and python. then it is used for Tuple and Nullable types.
So perhaps we should just create a replacement for this class in Lazarus and ditch Springs4Delphi.

domasz

  • Full Member
  • ***
  • Posts: 196
Re: Pascal for TensorFlow
« Reply #19 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?

PierceNg

  • Sr. Member
  • ****
  • Posts: 334
    • SamadhiWeb
Re: Pascal for TensorFlow
« Reply #20 on: February 03, 2023, 02:44:36 am »
I tried but can't compile it under Lazarus because of Springs4Delphi. Anybody knows how to use Springs4Delphi in Lazarus?

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

domasz

  • Full Member
  • ***
  • Posts: 196
Re: Pascal for TensorFlow
« Reply #21 on: February 03, 2023, 09:36:11 am »
There are two separate wrappers mentioned in this thread. Does the other one compile?
This one? https://github.com/zsoltszakaly/tensorflowforpascal
Yeah, compiles, no problems.

This one https://github.com/Pigrecos/TensorFlow.Delphi uses Spring4Delphi which can't compiled because of types like this:
Code: Pascal  [Select][+][-]
  1. TTimeSpan = TimeSpan.TTimeSpan
  2.   TStopwatch = Diagnostics.TStopwatch;
  3.  
I don't know how to substitute.

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 10578
  • FPC developer.
Re: Pascal for TensorFlow
« Reply #22 on: February 03, 2023, 10:20:09 am »
system.Timespan exists in trunk.

 

TinyPortal © 2005-2018