Unexpected file structure when serializing a model with layer called summary_layer · Issue #21166 · keras-team/keras · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting the issue. As we are not able to H5IOStore, here is the modified inspect_file function is there in this attached gist. Using that you can find the same result for saving and loading model.
Ordinarily, when serializing layers, we get a flat hierarchy in the resulting file. For example, the following code
when inspected with the tool described in #19705 results in the following file structure:
decoder
encoder
in the weights file. However, if a layer contains "summary" in its identifier:
an extra nesting level called "layers" is added:
decoder
layers
Such a sudden change in file structure is unexpected for users like me who rely on a consistent layout.
The text was updated successfully, but these errors were encountered: