Improving the robustness and accuracy of deep learning deployment on edge devices