load_weights() now properly closes file (#13048)
load_weights() now properly closes file (#13048)

In certain use cases, load_weights() would cause OSError if called repeatedly on many different files. The proposed addition will now make sure the HDF5 files are closed before exiting.
keras-team/keras,keras-team/keras