dlpy.sequential.Sequential.pop

Sequential.pop(loc=-1)

Delete layer(s) from model and return it

Parameters:
loc : int

Specifies the index of the layer in the model

Returns:
Layer