We don't have any examples. We did build a setup that enabled the use of TensorFlow RNNLMs with Kaldi-- this worked at the C++ level, using Kaldi binaries that linked against TensorFlow, using TensorFlow's C++ API. But it proved complicated to maintain, compile and use; for instance, TensorFlow's C++ API wasn't that consistent across versions.
I don't know what it would be like to do the same kind of thing with PyTorch; I suspect that by calling PyTorch from C++ you would be kind of going against the grain.
However, there is another possibility: to use PyKaldi (
https://github.com/pykaldi) which provides Python bindings for Kaldi types and OpenFst types. It appears to go sufficiently deeply inside objects like kaldi's CompactLattice, that it should be possible to do what you want with it (e.g.. (OpenFst has some official Python bindings but they don't seem to go deep enough inside the objects, and anyway wouldn't support Kaldi's lattice arc types directly without modification). I would be very interested to see what your experiences are with PyKaldi are. I still haven't made a decision about which direction to go in terms of supporting some more modern neural network toolkit.