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=-0.8 required=3.0 tests=BAYES_05,FORGED_GMAIL_RCVD, FREEMAIL_FROM,NICE_REPLY_A,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Rod Kay Newsgroups: comp.lang.ada Subject: Re: Artificial Intelligence libraries in ADA Date: Wed, 11 Jan 2023 17:35:03 +1100 Organization: A noiseless patient Spider Message-ID: References: <53481976-aebc-4d6d-bb8f-aa4f63f0b01b@googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 11 Jan 2023 06:34:46 -0000 (UTC) Injection-Info: reader01.eternal-september.org; posting-host="3671e046a9179fd81134d068de1c62f4"; logging-data="876620"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18R4cqi4FMJ/T0S+BgD1LPfQnT047K+PHY=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.1 Cancel-Lock: sha1:np320XhtBFXpFWIQQaSPGttY3ms= In-Reply-To: Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:64791 List-Id: 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. >> >> >> Regards. > > Has this code been posted? I have been looking for some type of Ada binding to TensorFlow, and was coming up short. I'm green enough to not feel confident to just write it all myself, so I am digging around trying to find anything that might exist. 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.