From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:622a:6027:b0:3ae:ee91:e192 with SMTP id he39-20020a05622a602700b003aeee91e192mr976225qtb.175.1673697183496; Sat, 14 Jan 2023 03:53:03 -0800 (PST) X-Received: by 2002:a54:461a:0:b0:35b:c586:d978 with SMTP id p26-20020a54461a000000b0035bc586d978mr4267410oip.77.1673697183193; Sat, 14 Jan 2023 03:53:03 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sat, 14 Jan 2023 03:53:02 -0800 (PST) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=118.211.116.220; posting-account=d51RWwoAAADvR-x0zYAtT9z3CRxT1eXo NNTP-Posting-Host: 118.211.116.220 References: <53481976-aebc-4d6d-bb8f-aa4f63f0b01b@googlegroups.com> <9becf5e6-1e77-4711-a4bb-1c7a5465e804n@googlegroups.com> <8f87c00c-1043-4452-8cee-ce437c0fafcfn@googlegroups.com> <29948ab4-9b39-4996-bcb8-3a2f7f509225n@googlegroups.com> <624d767b-ce04-46b0-8a5c-1999a86d3a1an@googlegroups.com> <77030e13-e4fc-4675-ac54-9d3047cf992cn@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <2b847c50-f2e3-44a0-ba99-7b76819a8760n@googlegroups.com> Subject: Re: Artificial Intelligence libraries in ADA From: Roger Mc Injection-Date: Sat, 14 Jan 2023 11:53:03 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 3769 Xref: reader01.eternal-september.org comp.lang.ada:64828 List-Id: On Saturday, January 14, 2023 at 8:34:53 PM UTC+11, roda...@gmail.com wrote: > On 14/1/23 09:08, Roger Mc wrote: > > On Friday, January 13, 2023 at 6:18:58 PM UTC+11, roda...@gmail.com wrote: > >> Would you able to send me a patch file for the bits which did need > >> adjusting, so I can add it to the cBound repo ? > > > > Probably easier if I just report changes that I found necessary to get it to work. > > A patch file would probably include stuff specific to my own installation and formatting preferences. > > 1. I removed "-lpthread" from Builder sections of the project (gpr) files due to builder complaint. > > 2. In tensorflow_wrap.c I needed to change > > #include > > to > > #include > > 3. In tensorflow.gpr I needed to change > > with "swig"; > > to > > with "../../../tier-0/swig/library/swig.gpr"; > > 4. In tensorflow.gpr I added my path to tensorflow/c/c_api.h to the Source_Dirs > > In my case: "/usr/local/Cellar/libtensorflow/2.11.0/include" > > 5. Not sure whether or not I caused this diff statement for the gpr files: > > -end hello_TF; > > \ No newline at end of file > > +end Hello_TF; > > 6. In hello_tf.gpr: > > -with > > - "tensorflow", > > - "swig"; > > +with "../../../library/tensorflow.gpr"; > > Presumably with is "swig" redundant as imported by tensorflow.gpr > > > Thanks. > > > I've opened an issue for these problems in the github cBound repo ... > > https://github.com/charlie5/cBound/issues/2 > > > Perhaps we can continue there. This thread is getting a bit *big* :) . Agreed. I'll recheck Problem 3