Sari la conținut

Română · beta. Traducerea a fost făcută automat și este încă în curs de revizuire. Citește pagina în engleză

perspectiva aiqbenchMachine learning

analiza aiqbench

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.
Sursă care acoperăarXiv
Ce este aceastaLectura unui model asupra articolului și a acoperirii conexe, scrisă pentru aiqbench. Nu sunt cuvintele publicației.

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

arXiv1 min de cititArticolul și perspectiva sunt în engleză.

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.

Text integral sub licența deschisă a publicației · 188 cuvinte

Subiecte conexe