Native Fortran Implementation of TensorFlow-Trained Deep and Bayesian Neural Networks
Aidan Furlong, Xingang Zhao, Bob Salko, Xu Wu

TL;DR
This paper introduces a Fortran framework for implementing deep and Bayesian neural networks, enabling native execution in nuclear engineering codes with significant computational speedups and verified accuracy.
Contribution
The study presents a novel Fortran-based implementation of DNNs and BNNs that operates without external APIs, facilitating ML integration in existing nuclear engineering software.
Findings
DNN predictions closely match TensorFlow outputs with negligible differences.
Achieved a 19.6x speedup in DNN inference over TensorFlow.
BNN inference was 8.0x faster with minor prediction discrepancies.
Abstract
Over the past decade, the investigation of machine learning (ML) within the field of nuclear engineering has grown significantly. With many approaches reaching maturity, the next phase of investigation will determine the feasibility and usefulness of ML model implementation in a production setting. Several of the codes used for reactor design and assessment are primarily written in the Fortran language, which is not immediately compatible with TensorFlow-trained ML models. This study presents a framework for implementing deep neural networks (DNNs) and Bayesian neural networks (BNNs) in Fortran, allowing for native execution without TensorFlow's C API, Python runtime, or ONNX conversion. Designed for ease of use and computational efficiency, the framework can be implemented in any Fortran code, supporting iterative solvers and UQ via ensembles or BNNs. Verification was performed using a…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAnomaly Detection Techniques and Applications · Neural Networks and Applications · Brain Tumor Detection and Classification
