Compile fixes in auto_encoders