Skip to main content
. 2024 Jun 18;57(Pt 4):931–944. doi: 10.1107/S1600576724003182

Figure 11.

Figure 11

Listing 2, an example integration of a serialized PyTorch model into the CrystFEL suite. Using LibTorch, the serialized model is loaded, the necessary inputs are prepared and the indexer is then executed. This interface highlights the potential for using serialized PyTorch models within a C++ application, allowing integration without recompilation.