Coarse-grained processor array implementing the multilayer neural network model