Low-memory and high-performance CNN inference on distributed systems at the edge