Skip to content
aiqbench takeMachine Learning

aiqbench analysis

CodeJeNN addresses the critical performance bottleneck of integrating Python-based machine learning models into high-performance C++ computational physics solvers by auto-generating self-contained inference code. This tool enables seamless deployment of trained Keras architectures within existing frameworks, eliminating external dependencies while maintaining numerical accuracy in complex simulations like CFD. For researchers aiming to leverage AI acceleration without sacrificing the speed required for large-scale scientific computing, this workflow offers a practical solution to bridge the gap between model training and solver execution.
Source coveringarXiv
What this isA model's reading of the article and related coverage, written for aiqbench. Not the publisher's words.

CodeJeNN: A simple C++ neural network generator for physics applications

arXiv1 min read

arXiv:2607.02746v2 Announce Type: replace-cross Abstract: Machine learning has shown speedups for numerical methods in physics applications, but integrating Python-based libraries into high-performance C++ solvers creates performance bottlenecks. We present CodeJeNN, which bridges this gap by auto-generating self-contained C++ code from trained Keras models for inference. This eliminates external dependencies through minimal inlined functions, allowing seamless integration into existing frameworks. We describe the Keras-to-C++ workflow, supported architectures, and limitations. CodeJeNN is demonstrated through inference benchmarks against Keras in eager and JIT modes and a CFD test case modeling viscosity in a hydrogen-air mixing layer, showing speedups without sacrificing accuracy.

Abstract:Machine learning has shown speedups for numerical methods in physics applications, but integrating Python-based libraries into high-performance C++ solvers creates performance bottlenecks. We present CodeJeNN, which bridges this gap by auto-generating self-contained C++ code from trained Keras models for inference. This eliminates external dependencies through minimal inlined functions, allowing seamless integration into existing frameworks. We describe the Keras-to-C++ workflow, supported architectures, and limitations. CodeJeNN is demonstrated through inference benchmarks against Keras in eager and JIT modes and a CFD test case modeling viscosity in a hydrogen-air mixing layer, showing speedups without sacrificing accuracy.

Computational Physics (physics.comp-ph); Machine Learning (cs.LG)

arXiv:2607.02746 [physics.comp-ph]

(or arXiv:2607.02746v2 [physics.comp-ph] for this version)

https://doi.org/10.48550/arXiv.2607.02746 Focus to learn more arXiv-issued DOI via DataCite

arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

Full text under the publisher's open licence · 188 words

Related coverage