Help, Convert from python to Fortran

Could you please share more about your code?

Since you mentioned that you’re mainly using numpy, I’m blindly assuming (and kindly correct me if I’m wrong) that your code is pedagogical in nature, or if it’s for industrial applications, you’re not using advanced Neural Network libraries for Python.

If your code is mainly simple linear algebra code, then yes, it can be easily converted to Fortran, but if you’re using advanced Neural Network libraries in Python like Tensorflow, Keras, etc. then it will require more efforts from your side to convert the code to Fortran.