Buffer sizes reduction for memory-efficient CNN inference on mobile and embedded devices