Saving NN with TF 2.x fails

With tensorflow 2.x, saving the neural net model fails with the following error.

TypeError: expected str, bytes or os.PathLike object, not Group

Apparently, saving to a hdf5 Group is not supported anymore.