pop_layer: Remove the last layer in a Sequential model

View source: R/model-creation.R

pop_layerR Documentation

Remove the last layer in a Sequential model

Description

Remove the last layer in a Sequential model

Usage

pop_layer(object, rebuild = TRUE)

Arguments

object

Sequential keras model object

rebuild

bool. Whether to rebuild the model after removing the layer. Defaults to TRUE.

Value

The removed layer.

See Also

Other model functions:
get_config()
get_layer()
get_state_tree()
keras_model()
keras_model_sequential()
set_state_tree()
summary.keras.src.models.model.Model()


keras3 documentation built on June 8, 2025, 1:36 p.m.