A 142MOPS/mW integrated programmable array accelerator for smart visual processing