Closed Loop Perception for Resource Efficient Autonomous Systems