Title: On-Chip Training NPU Algorithm, Architecture and SoC Design