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.0 required=3.0 tests=BAYES_20,FORGED_GMAIL_RCVD, FREEMAIL_FROM,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Received: by 2002:ac8:774b:0:b0:3a5:7c31:2e3e with SMTP id g11-20020ac8774b000000b003a57c312e3emr2165236qtu.111.1673491579160; Wed, 11 Jan 2023 18:46:19 -0800 (PST) X-Received: by 2002:ac8:6eca:0:b0:3a9:68ba:4c10 with SMTP id f10-20020ac86eca000000b003a968ba4c10mr2560473qtv.676.1673491578926; Wed, 11 Jan 2023 18:46:18 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.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: Wed, 11 Jan 2023 18:46:18 -0800 (PST) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=118.208.176.39; posting-account=d51RWwoAAADvR-x0zYAtT9z3CRxT1eXo NNTP-Posting-Host: 118.208.176.39 References: <53481976-aebc-4d6d-bb8f-aa4f63f0b01b@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <9becf5e6-1e77-4711-a4bb-1c7a5465e804n@googlegroups.com> Subject: Re: Artificial Intelligence libraries in ADA From: Roger Mc Injection-Date: Thu, 12 Jan 2023 02:46:19 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 3660 Xref: reader01.eternal-september.org comp.lang.ada:64800 List-Id: On Wednesday, January 11, 2023 at 5:34:48 PM UTC+11, roda...@gmail.com wrote: > On 9/1/23 03:32, Dana B wrote: > > On Friday, November 11, 2022 at 5:19:56 AM UTC-5, roda...@gmail.com wrote: > >> On 11/11/22 06:18, Luke A. Guest wrote: > >>> > >>> Also, Rod Kay (charlie on irc) did something re TF iirc. > >> I generated a thin binding to the TensorFlow C API via swig4ada > >> around mid June. The binding has not been tested apart from a 'hello_TF' > >> demo which simply calls the 'TF_Version' function and prints it. > >> > >> I've been distracted by other projects since but as chance would > >> have it, I've recently resumed work on swig4ada and TF will definitely > >> be one of the top priorities re testing swig4ada. > >> > >> I'll try to take another look at it this weekend and to get the TF > >> binding onto github, if possible. > >> > >> > I've just added the binding today. > > https://github.com/charlie5/cBound/tree/master/tier-1/tensorflow > > Install instructions are in the top-level 'README.md'. > > Bear in mind the binding is auto generated, thin and is the C API > version '2.11.0'. > > It's also auto-formatted using 'gnatpp' (for the Ada code) and 'indent' > (for the C code). > > Other than the 'hello_tf' demo, it's also untested. > > I'll spend some time tomorrow cleaning up the formatting and removing > some of the source code 'warts' (such as redundant 'with's). > > If you try it, please let me know how it goes (especially bugs :) ). > > > Regards. I've tried to install cBound and am not quite sure what I need to do. When I try to build the library it fails with: 2023-01-12 13:37:54] /Ada_Source/cBound/tier-1/tensorflow/library/tensorflow.gpr:2:06: unknown project file: "swig" I have installed swig4ada but it does not seem to have a gpr file. Attempts to build the 'hello_tf' demo fails with: /Ada_Source/cBound/tier-1/tensorflow/applet/demo/hello_tf/hello_tf.gpr:2:06: unknown project file: "tensorflow" [2023-01-12 13:42:51] /Ada_Source/cBound/tier-1/tensorflow/applet/demo/hello_tf/hello_tf.gpr:3:06: unknown project file: "swig" Not surprising as I couldn't build the tensorflow library?