-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building the Tensorflow binding on MacOS. #2
Comments
Problems 1, 2 and 5 have been fixed. Problem 3: I don't understand why a relative path to 'swig.gpr' is needed, since the swig library folder should have been added to GPR_PROJECT_PATH when "source $CBOUND/cbound-gpr_paths.sh" is done in '.bashrc' (or equivalent) as per the 'Install' notes in the 'README.md'. Problem 4: I can probably fix this with as OS scenario variable. Will try it tomorrow. Problem 6: For the relative path to 'tensorflow.gpr', the same applies as in Problem 3. The 'with' of "swig" is indeed redundant and has been removed. Thanks for reporting these Roger. |
Of course! |
How was tensorflow installed on your system ? Via a package manager ? I need to know if the 'c_api.h' will be installed in "/usr/local/Cellar/libtensorflow/2.11.0/include" as a 'standard' location on other peoples MacOS systems. |
I think this is quite problematic. |
I'm wondering if a cBound solution is possible for Python3? |
I don't really understand why Problem 4 occurs as /usr/local/include has a tensorflow link to /Cellar/libtensorflow/2.11.0/include/tensorflow |
Didn't get much of a chance to look at this today, sorry. I have d/l'ed and am installing macOS onto a qemu box, so should be able to experiment a bit tomorrow. |
The following problems/adjustments were reported by Roger Mc on c.l.a ...
I removed "-lpthread" from Builder sections of the project (gpr) files due to builder complaint.
In tensorflow_wrap.c I needed to change
#include <tensorflow/tensorflow/c/c_api.h>
to
#include <tensorflow/c/c_api.h>
In tensorflow.gpr I needed to change
with "swig";
to
with "../../../tier-0/swig/library/swig.gpr";
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"
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;
In hello_tf.gpr:
Change ...
with
"tensorflow",
"swig";
to ...
with "../../../library/tensorflow.gpr";
Presumably 'with' of "swig" is redundant, as it's imported by tensorflow.gpr
The text was updated successfully, but these errors were encountered: