finish of auto encoder ex.