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:ac8:7245:0:b0:39c:df33:c189 with SMTP id l5-20020ac87245000000b0039cdf33c189mr4596157qtp.498.1673647724667; Fri, 13 Jan 2023 14:08:44 -0800 (PST) X-Received: by 2002:a05:6870:b10:b0:15e:a5b8:25de with SMTP id lh16-20020a0568700b1000b0015ea5b825demr919806oab.291.1673647724240; Fri, 13 Jan 2023 14:08:44 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!news.mixmin.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 13 Jan 2023 14:08:43 -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> <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: Subject: Re: Artificial Intelligence libraries in ADA From: Roger Mc Injection-Date: Fri, 13 Jan 2023 22:08:44 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader01.eternal-september.org comp.lang.ada:64824 List-Id: 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 > I'm afraid I don't know anything about Apple or MacOS except a vague > notion that it was based on one of the BSD's ? Yes, MacOS is a Unix derivative and can be interacted with using standard Unix commands.