Closed var-nan closed 2 years ago
Thanks for the PR! The change looks right. However there are a lot of extra lines being changed in the PR. Can you please limit to change to the specific lines being edited?
In the previous commit, most of the changes occurred because of the auto-update of cell numbers in Jupyter-notebook. The number of changes is reduced in this commit.
Thanks!
In code block 7.26, If the sub-block alone is executed, it generates
NameError: name 'model' is not defined
. The subclassCustomModel
uses the optimizer and trainable weights that were defined in the previous model. By accessing the actual optimizer and trainable weights that passed toCustomModel
'scompile()
, the subclass can be made independent of the previously defined model and can eliminate the mentioned error.