Automated exploration and implementation of distributed CNN inference at the edge