Introspective Learning: A Two-Stage Approach for Inference in Neural Networks