I trained a cnn model with keras and saved the model to h5 file, then I convert the h5 file to pb file. I opened my_model.pb file in python and predicted test data, it works