Recently I had to make a neural net run in CMSSW. Apparently this is possible in CMSSW 10_X_Y thanks to the interface to TensorFlow C++ library that has been implemented in PhysicsTools/TensorFlow. I converted the NN into a TensorFlow “constant graph” and loaded it into the CMSSW environment and ran NN inference. It worked!

How to use the CMSSW TensorFlow interface is described in these slides. Documentation can be found in this repo: https://gitlab.cern.ch/mrieger/CMSSW-DNN (mirror: https://github.com/riga/CMSSW-DNN).