finish layerwised trainer