dlpy.sequential.Sequential.pop

Sequential.pop(loc=- 1)

Delete layer(s) from model and return it

Parameters
locint

Specifies the index of the layer in the model

Returns
Layer