Hi, I have a model in the format hdf5 which is taught using keras pyhton. Now I want to load this model in C ++ and use it. I do not know if libtorch loads the model. How should this be done?

Hi, I have a model in the format hdf5 which is taught using keras pyhton. Now I want to load this model in C ++ and use it. I do not know if libtorch loads the model. How should this be done?

No, libtorch won’t be able to load Keras models, so you would need to export the PyTorch model first e.g. as described in this tutorial or write the model directly in libtorch.