赞
踩
要保存的model中包含了自定义的层(Custom Layer),导致加载模型的时候无法解析该Layer
ner_model = load_model(model_path + 'my_model.h5', custom_objects={"CRF": CRF,"crf_loss": crf_loss, "crf_accuracy": crf_accuracy})
参考