Scenario based run-time switching for adaptive CNN-based applications at the edge