Skip to content

Commit 4ad808d

Browse files
authored
docs: add params to Sequential.pop docstring (#20896)
* docs: add params to Sequential.pop docstring in sequential.py * Remove trailing white space in Sequential.pop docstring in sequential.py * Remove trailing white space in sequential.py * docs: add the default argument value in Sequential.pop docstring in sequential.py * sytle: reformat sequential.py with black * docs: fix Sequential.pop docstring formatting
1 parent d7bb2f3 commit 4ad808d

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

keras/src/models/sequential.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,15 @@ def add(self, layer, rebuild=True):
125125
self._functional = None
126126

127127
def pop(self, rebuild=True):
128-
"""Removes the last layer in the model."""
128+
"""Removes the last layer in the model.
129+
130+
Args:
131+
rebuild: `bool`. Whether to rebuild the model after removing
132+
the layer. Defaults to `True`.
133+
134+
Returns:
135+
layer: layer instance.
136+
"""
129137
layer = self._layers.pop()
130138
self.built = False
131139
self._functional = None

0 commit comments

Comments
 (0)