ALOHA: An Architectural-aware Framework for Deep Learning at the Edge