Fix early exit inference loop to eliminate redundant computation a781577 Florian valade commited on Jan 19