DPCNN: a modular chip for large CNN arrays