Synthesis of auto encoder