Removes the last layer in the model. Raises: TypeError: if there are no layers in the model.
(self)
source not stored for this graph (policy: none)