In TensorFlow 2.18 the behavior of model.save() has changed. In previous versions you could save a model in the “SavedModel” (TensorFlow) format simply by calling, for example, model.save("my_model")
. Now, however, model.save()
requires that you either specify a .keras
or a .h5
extension.