Sign inBackstageMy ParadeSubmit a product

FTorch

Library for calling PyTorch machine learning models from Fortran code

ToolOpen source

FTorch is a library that connects PyTorch machine learning models to codes written in Fortran. It is aimed at scientists and engineers who maintain Fortran simulation software and want to run trained models inside it without rewriting the surrounding program.

The library is written in modern Fortran (2008 standard) and its source code is public on GitHub. The maker describes it as having been used in several scientific projects, and an associated paper has been published in the Journal of Open Source Software.

Alternatives to FTorch

Products that do a similar job in Science & Research.

All alternatives

GNU Octave

High-level language for numerical computing and data visualisation

AppScience & Research··Open source·Updated Jun 2026

NumPy

Numerical arrays and maths package for Python

ToolScience & Research·Open source·Updated Dec 2026

scikit-learn

Python library for machine learning models and data preprocessing

ToolScience & Research·Open source·Updated Dec 2026

LAPACK

Fortran library for numerical linear algebra routines

ToolScience & Research·Open source·Quiet since Jan 2025

BLAS

Standard routines for common linear algebra operations

ToolScience & Research

R

Free environment for statistical computing and graphics

AppScience & Research··Free

Scilab

Numerical computing environment for engineering and science

AppScience & Research··Open source·Updated Oct 2026