Replies: 2 comments 1 reply
-
Hi, |
Beta Was this translation helpful? Give feedback.
1 reply
-
I guess you probably want to call a method on maybe a Tensorflow tensor, but you only have a generic forpy object? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Thank you very much for providing the forpy library! I am hoping to link Fortran and Python in order to utilize neural net tools in Python during the execution of a larger Fortran program. I have worked through your online examples and am trying to build upon them for my project. I am stuck at the point of importing tensorflow and keras.
Below are my codes where I try to import various Python modules.
After I compile with ifort importexample.F90 forpy_mod.o
python3-config --ldflags --embed
and execute with ./a.out, I find the ierror=0 for scipy.optimize, numpy and datetime; but ierror=1 for keras.model and tensorflow. All theI had no problem implementing any example program that you provided on this repository. I am using python3 on a university-provided computing platform:
[uctpwji@login14 Python]$ which python
/shared/ucl/apps/python/bundles/python39-6.0.0/venv/bin/python
[uctpwji@login14 Python]$ python3-config --ldflags
-L/lustre/shared/ucl/apps/python/3.9.10/gnu-4.9.2/lib -lcrypt -lpthread -ldl -lutil -lm -lm
Any tips or suggestions will be very appreciated! Many thanks again for making Forpy available!
Beta Was this translation helpful? Give feedback.
All reactions