I saved the Keras model with CRF layer as follows: model.save(modelName)
and loaded it as below: model= load_model(\'model.h5\',custom_objects={\'CRF\':CRF,\'crf_loss