model.save('full_model.h5') # save everything in HDF5 formatmodel_json =model.to_json() # save just the config.replace with "to_yaml"forYAML serializationwith open("model_config.json","w") as f:f.write(model_json)model.save_weights('model_weights.h5') # save just the weights.
String fullModel =newClassPathResource("full_model.h5").getFile().getPath();MultiLayerNetwork model =KerasModelImport.importKerasSequentialModelAndWeights(fullModel);