Indices are based on order of horizontal graph traversal (bottom-up) and are 0-based.

get_layer(object, name = NULL, index = NULL)

Arguments

object

Keras model object

name

String, name of layer.

index

Integer, index of layer (0-based)

Value

A layer instance.

See also

Other model functions: compile, evaluate_generator, evaluate, fit_generator, fit, get_config, keras_model_sequential, keras_model, pop_layer, predict.keras.engine.training.Model, predict_generator, predict_on_batch, predict_proba, summary.keras.engine.training.Model, train_on_batch