Retrieves a layer based on either its name (unique) or index.
Source:R/model-creation.R
get_layer.Rd
Indices are based on order of horizontal graph traversal (bottom-up) and are
1-based. If name
and index
are both provided, index
will take
precedence.
See also
Other model functions: get_config()
keras_model()
keras_model_sequential()
pop_layer()
summary.keras.src.models.model.Model()