Skip to content

Commit

Permalink
Corrected variable name layer to sublayer (#1828)
Browse files Browse the repository at this point in the history
* Corrected variable name layer to sublayer

* Corrected variable name layer to sublayer

* Corrected variable name layer to sublayer
  • Loading branch information
edbosne authored Apr 11, 2024
1 parent b907281 commit b316764
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions guides/ipynb/serialization_and_saving.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@
"class CustomLayer(keras.layers.Layer):\n",
" def __init__(self, sublayer, **kwargs):\n",
" super().__init__(**kwargs)\n",
" self.sublayer = layer\n",
" self.sublayer = sublayer\n",
"\n",
" def call(self, x):\n",
" return self.sublayer(x)\n",
Expand Down Expand Up @@ -1111,4 +1111,4 @@
},
"nbformat": 4,
"nbformat_minor": 0
}
}
2 changes: 1 addition & 1 deletion guides/md/serialization_and_saving.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ Like this:
class CustomLayer(keras.layers.Layer):
def __init__(self, sublayer, **kwargs):
super().__init__(**kwargs)
self.sublayer = layer
self.sublayer = sublayer

def call(self, x):
return self.sublayer(x)
Expand Down
2 changes: 1 addition & 1 deletion guides/serialization_and_saving.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class method.
class CustomLayer(keras.layers.Layer):
def __init__(self, sublayer, **kwargs):
super().__init__(**kwargs)
self.sublayer = layer
self.sublayer = sublayer
def call(self, x):
return self.sublayer(x)
Expand Down

0 comments on commit b316764

Please sign in to comment.