Usage

  • Jack Atkinson
  • Last Updated: October 2025

Usage

Examples

The Overview & Generic Example page walks through the process of saving a model from Python and using it within Fortran, including how to build and link the code using FTorch to the library. This is the best place to start to understand how FTorch works and how to use it.

The Worked Examples page summarises the comprehensive set or practical examples included in the FTorch repository. These demonstrate how to use FTorch for model coupling, tensor manipulation, with GPU acceleration, with MPI, and more. It is advised to work through some of these to check your installation and better understand how to use FTorch.

API Documentation

These pages contain detailed documentation of the various component APIs included in FTorch. Currently there is detail for Tensors, with Models and Optimizers being work in progress.

Training

These pages discuss the conceptual ideas around using FTorch for coupling models trained offline, and training models online.