Neural Network Computing Using On-Chip Accelerators