dlpy.sequential.Sequential.switch

Sequential.switch(loc1, loc2)

Switch the order of two layers in the model.

Parameters:
loc1 : int

Specifies the index of the first layer

loc2 : int

Specifies the index of the second layer